Class: SimpleMapper::Associations::Association::Set
- Includes:
- Enumerable
- Defined in:
- lib/simple_mapper/default_plugins/associations.rb
Instance Attribute Summary
Attributes inherited from Instance
Instance Method Summary collapse
Methods included from Enumerable
Methods inherited from Instance
#associate, #associate!, #build, #create, #dirty?, #initialize, #inspect, #item, #items, #method_missing, #reload!, #respond_to?
Constructor Details
This class inherits a constructor from SimpleMapper::Associations::Association::Instance
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class SimpleMapper::Associations::Association::Instance
Instance Method Details
#<<(object) ⇒ Object
368 369 370 |
# File 'lib/simple_mapper/default_plugins/associations.rb', line 368 def <<(object) (@items ||= []) << associate(object) end |
#each ⇒ Object
364 365 366 |
# File 'lib/simple_mapper/default_plugins/associations.rb', line 364 def each items.each { |item| yield item } end |