Class: CouchRest::CastedArray
- Inherits:
-
Array
- Object
- Array
- CouchRest::CastedArray
- Defined in:
- lib/couchrest/casted_array.rb
Instance Attribute Summary (collapse)
-
- (Object) casted_by
Returns the value of attribute casted_by.
-
- (Object) property
Returns the value of attribute property.
Instance Method Summary (collapse)
- - (Object) <<(obj)
- - (Object) []=(index, obj)
-
- (CastedArray) initialize(array, property)
constructor
A new instance of CastedArray.
- - (Object) push(obj)
Constructor Details
- (CastedArray) initialize(array, property)
A new instance of CastedArray
11 12 13 14 |
# File 'lib/couchrest/casted_array.rb', line 11 def initialize(array, property) self.property = property super(array) end |
Instance Attribute Details
- (Object) casted_by
Returns the value of attribute casted_by
8 9 10 |
# File 'lib/couchrest/casted_array.rb', line 8 def casted_by @casted_by end |
- (Object) property
Returns the value of attribute property
9 10 11 |
# File 'lib/couchrest/casted_array.rb', line 9 def property @property end |
Instance Method Details
- (Object) <<(obj)
16 17 18 |
# File 'lib/couchrest/casted_array.rb', line 16 def << obj super(instantiate_and_cast(obj)) end |
- (Object) []=(index, obj)
24 25 26 |
# File 'lib/couchrest/casted_array.rb', line 24 def []= index, obj super(index, instantiate_and_cast(obj)) end |
- (Object) push(obj)
20 21 22 |
# File 'lib/couchrest/casted_array.rb', line 20 def push(obj) super(instantiate_and_cast(obj)) end |