Skip to content

Instantly share code, notes, and snippets.

Created October 9, 2014 21:58
Show Gist options
  • Save anonymous/0d3ae5c123b720b5199f to your computer and use it in GitHub Desktop.
Save anonymous/0d3ae5c123b720b5199f to your computer and use it in GitHub Desktop.
# 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