Class: Antlr4::Runtime::FlexibleHashMap::Entry
- Inherits:
-
Object
- Object
- Antlr4::Runtime::FlexibleHashMap::Entry
- Defined in:
- lib/antlr4/runtime/flexible_hash_map.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(key, value) ⇒ Entry
constructor
A new instance of Entry.
- #to_s ⇒ Object
Constructor Details
#initialize(key, value) ⇒ Entry
Returns a new instance of Entry.
11 12 13 14 |
# File 'lib/antlr4/runtime/flexible_hash_map.rb', line 11 def initialize(key, value) @key = key @value = value end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
8 9 10 |
# File 'lib/antlr4/runtime/flexible_hash_map.rb', line 8 def key @key end |
#value ⇒ Object
Returns the value of attribute value.
9 10 11 |
# File 'lib/antlr4/runtime/flexible_hash_map.rb', line 9 def value @value end |
Instance Method Details
#to_s ⇒ Object
16 17 18 |
# File 'lib/antlr4/runtime/flexible_hash_map.rb', line 16 def to_s @key.to_s << ':' << @value.to_s end |