Class: Ripple::Associations::ManyLinkedProxy
- Inherits:
- Proxy show all
- Includes:
- Linked, Many
- Defined in:
- ripple/lib/ripple/associations/many_linked_proxy.rb
Instance Attribute Summary
Attributes inherited from Proxy
Instance Method Summary (collapse)
Methods included from Linked
Methods included from Many
Methods included from Instantiators
Methods inherited from Proxy
#===, #blank?, #initialize, #inspect, #loaded, #loaded?, #nil?, #present?, #proxy_respond_to?, #reload, #replace, #reset, #respond_to?, #send
Constructor Details
This class inherits a constructor from Ripple::Associations::Proxy
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Ripple::Associations::Proxy
Instance Method Details
- (Object) <<(value)
25 26 27 28 29 30 |
# File 'ripple/lib/ripple/associations/many_linked_proxy.rb', line 25 def <<(value) load_target new_target = @target.concat(Array(value)) replace new_target self end |
- (Object) delete(value)
32 33 34 35 36 37 |
# File 'ripple/lib/ripple/associations/many_linked_proxy.rb', line 32 def delete(value) load_target @target.delete(value) replace @target self end |