Class: Rasti::Types::Hash
- Inherits:
-
Object
- Object
- Rasti::Types::Hash
- Includes:
- Castable
- Defined in:
- lib/rasti/types/hash.rb
Instance Attribute Summary collapse
-
#key_type ⇒ Object
readonly
Returns the value of attribute key_type.
-
#value_type ⇒ Object
readonly
Returns the value of attribute value_type.
Class Method Summary collapse
Instance Method Summary collapse
- #to_s ⇒ Object (also: #inspect)
Methods included from Castable
Instance Attribute Details
#key_type ⇒ Object (readonly)
Returns the value of attribute key_type.
7 8 9 |
# File 'lib/rasti/types/hash.rb', line 7 def key_type @key_type end |
#value_type ⇒ Object (readonly)
Returns the value of attribute value_type.
7 8 9 |
# File 'lib/rasti/types/hash.rb', line 7 def value_type @value_type end |
Class Method Details
.[](key_type, value_type) ⇒ Object
9 10 11 |
# File 'lib/rasti/types/hash.rb', line 9 def self.[](key_type, value_type) new key_type, value_type end |
Instance Method Details
#to_s ⇒ Object Also known as: inspect
13 14 15 |
# File 'lib/rasti/types/hash.rb', line 13 def to_s "#{self.class}[#{key_type}, #{value_type}]" end |