class ProtoJ::Associations::CollectionProxy
Public Class Methods
new(association)
click to toggle source
# File lib/proto_j/associations/collection_proxy.rb, line 8 def initialize(association) @association = association end
Public Instance Methods
<<(*records)
click to toggle source
# File lib/proto_j/associations/collection_proxy.rb, line 21 def <<(*records) @association.concat(records) && self end
Also aliased as: push
===(other)
click to toggle source
# File lib/proto_j/associations/collection_proxy.rb, line 12 def ===(other) other === target end
method_missing(method, *args, &block)
click to toggle source
# File lib/proto_j/associations/collection_proxy.rb, line 26 def method_missing(method, *args, &block) target.send(method, *args, &block) end
to_ary()
click to toggle source
# File lib/proto_j/associations/collection_proxy.rb, line 16 def to_ary target.dup end
Also aliased as: to_a