Module: Ephemeral::Base
- Defined in:
- lib/ephemeral/base.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/ephemeral/base.rb', line 8 def self.included(base) base.extend ClassMethods base.send(:attr_accessor, :relations) base.send(:attr_writer, :collections) base.send(:class_variable_set, "@@objects", []) end |
Instance Method Details
#collections ⇒ Object
15 16 17 |
# File 'lib/ephemeral/base.rb', line 15 def collections @collections ||= {} end |