Class: CastedArray
Instance Attribute Summary collapse
-
#casted_by ⇒ Object
Returns the value of attribute casted_by.
Instance Method Summary collapse
Methods inherited from Array
Instance Attribute Details
#casted_by ⇒ Object
Returns the value of attribute casted_by.
43 44 45 |
# File 'lib/couchrest/more/property.rb', line 43 def casted_by @casted_by end |
Instance Method Details
#<<(obj) ⇒ Object
45 46 47 48 |
# File 'lib/couchrest/more/property.rb', line 45 def << obj obj.casted_by = self.casted_by if obj.respond_to?(:casted_by) super(obj) end |
#[]=(index, obj) ⇒ Object
55 56 57 58 |
# File 'lib/couchrest/more/property.rb', line 55 def []= index, obj obj.casted_by = self.casted_by if obj.respond_to?(:casted_by) super(index, obj) end |
#push(obj) ⇒ Object
50 51 52 53 |
# File 'lib/couchrest/more/property.rb', line 50 def push(obj) obj.casted_by = self.casted_by if obj.respond_to?(:casted_by) super(obj) end |