Class: Kalculator::MappedObject
- Inherits:
-
Collection
- Object
- Collection
- Kalculator::MappedObject
- Defined in:
- lib/kalculator/types.rb
Overview
a collection that represents an object and holds any type of data
Instance Attribute Summary collapse
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
Attributes inherited from Collection
Instance Method Summary collapse
-
#initialize(hash) ⇒ MappedObject
constructor
A new instance of MappedObject.
Methods inherited from Collection
#<=, #==, #>=, #generic_type?
Constructor Details
#initialize(hash) ⇒ MappedObject
Returns a new instance of MappedObject.
81 82 83 84 |
# File 'lib/kalculator/types.rb', line 81 def initialize(hash) super(Object) @hash = hash end |
Instance Attribute Details
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
80 81 82 |
# File 'lib/kalculator/types.rb', line 80 def hash @hash end |