Class: Literal::Hash
- Inherits:
-
Object
- Object
- Literal::Hash
- Defined in:
- lib/literal/hash.rb
Instance Attribute Summary collapse
-
#key_type ⇒ Object
Returns the value of attribute key_type.
-
#value ⇒ Object
Returns the value of attribute value.
-
#value_type ⇒ Object
Returns the value of attribute value_type.
Instance Method Summary collapse
- #[]=(key, value) ⇒ Object
-
#initialize(value, key_type:, value_type:) ⇒ Hash
constructor
A new instance of Hash.
Constructor Details
#initialize(value, key_type:, value_type:) ⇒ Hash
Returns a new instance of Hash.
4 5 6 7 8 |
# File 'lib/literal/hash.rb', line 4 def initialize(value, key_type:, value_type:) @value = value @key_type = key_type @value_type = value_type end |
Instance Attribute Details
#key_type ⇒ Object
Returns the value of attribute key_type.
10 11 12 |
# File 'lib/literal/hash.rb', line 10 def key_type @key_type end |
#value ⇒ Object
Returns the value of attribute value.
10 11 12 |
# File 'lib/literal/hash.rb', line 10 def value @value end |
#value_type ⇒ Object
Returns the value of attribute value_type.
10 11 12 |
# File 'lib/literal/hash.rb', line 10 def value_type @value_type end |