Class: Kalculator::MappedObject

Inherits:
Collection show all
Defined in:
lib/kalculator/types.rb

Overview

a collection that represents an object and holds any type of data

Instance Attribute Summary collapse

Attributes inherited from Collection

#type

Instance Method Summary collapse

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

#hashObject (readonly)

Returns the value of attribute hash.



80
81
82
# File 'lib/kalculator/types.rb', line 80

def hash
  @hash
end