Skip to content

Instantly share code, notes, and snippets.

@fridim
Created August 3, 2010 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fridim/506006 to your computer and use it in GitHub Desktop.
Save fridim/506006 to your computer and use it in GitHub Desktop.
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