Skip to content

Instantly share code, notes, and snippets.

@fridim

fridim/library.rb

Created Aug 3, 2010
Embed
What would you like to do?
class Library
# Constructor. Initialize the good library according to the name given in parameter.
def initialize(library = '')
case library
when /sutherland/i
return Alexandria::Sutherland::Library.new
else
return Alexandria::Library.new
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.