Class: Antlr4ruby::Pair
- Inherits:
-
Object
- Object
- Antlr4ruby::Pair
- Defined in:
- lib/antlr4ruby/misc/pair.rb
Instance Attribute Summary collapse
-
#first ⇒ Object
Returns the value of attribute first.
-
#second ⇒ Object
Returns the value of attribute second.
Instance Method Summary collapse
-
#initialize(a, b) ⇒ Pair
constructor
A new instance of Pair.
Constructor Details
#initialize(a, b) ⇒ Pair
Returns a new instance of Pair.
9 10 11 12 |
# File 'lib/antlr4ruby/misc/pair.rb', line 9 def initialize(a, b) super() @first, @second = a, b end |
Instance Attribute Details
#first ⇒ Object
Returns the value of attribute first.
7 8 9 |
# File 'lib/antlr4ruby/misc/pair.rb', line 7 def first @first end |
#second ⇒ Object
Returns the value of attribute second.
7 8 9 |
# File 'lib/antlr4ruby/misc/pair.rb', line 7 def second @second end |