Created
August 3, 2010 07:38
-
-
Save fridim/506006 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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