Class: Crystalline::Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/crystalline/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeObject

Returns the value of attribute key_type.



17
18
19
# File 'lib/crystalline/types.rb', line 17

def key_type
  @key_type
end

#value_typeObject

Returns the value of attribute value_type.



17
18
19
# File 'lib/crystalline/types.rb', line 17

def value_type
  @value_type
end