Class: Crystalline::Hash
- Inherits:
-
Object
- Object
- Crystalline::Hash
- Defined in:
- lib/crystalline/types.rb
Instance Attribute Summary collapse
-
#key_type ⇒ Object
Returns the value of attribute key_type.
-
#value_type ⇒ Object
Returns the value of attribute value_type.
Instance Method Summary collapse
-
#initialize(key_type, value_type) ⇒ Hash
constructor
A new instance of Hash.
Constructor Details
#initialize(key_type, value_type) ⇒ Hash
Returns a new instance of Hash.
19 20 21 22 |
# File 'lib/crystalline/types.rb', line 19 def initialize(key_type, value_type) @key_type = key_type @value_type = value_type end |
Instance Attribute Details
#key_type ⇒ Object
Returns the value of attribute key_type.
17 18 19 |
# File 'lib/crystalline/types.rb', line 17 def key_type @key_type end |
#value_type ⇒ Object
Returns the value of attribute value_type.
17 18 19 |
# File 'lib/crystalline/types.rb', line 17 def value_type @value_type end |