Created
October 9, 2014 21:58
-
-
Save anonymous/0d3ae5c123b720b5199f 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
# not thread safe?! | |
class College | |
def self.list | |
@list ||= [] | |
end | |
def self.generate_list | |
SOME_SOURCE.each do |college| | |
College.list << college | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment