Class: Racc::Prec
Instance Attribute Summary collapse
-
#lineno ⇒ Object
readonly
Returns the value of attribute lineno.
-
#symbol ⇒ Object
readonly
Returns the value of attribute symbol.
Instance Method Summary collapse
-
#initialize(symbol, lineno) ⇒ Prec
constructor
A new instance of Prec.
- #name ⇒ Object (also: #inspect)
Constructor Details
#initialize(symbol, lineno) ⇒ Prec
Returns a new instance of Prec.
786 787 788 789 |
# File 'lib/racc/grammar.rb', line 786 def initialize(symbol, lineno) @symbol = symbol @lineno = lineno end |
Instance Attribute Details
#lineno ⇒ Object (readonly)
Returns the value of attribute lineno.
798 799 800 |
# File 'lib/racc/grammar.rb', line 798 def lineno @lineno end |
#symbol ⇒ Object (readonly)
Returns the value of attribute symbol.
797 798 799 |
# File 'lib/racc/grammar.rb', line 797 def symbol @symbol end |
Instance Method Details
#name ⇒ Object Also known as: inspect
791 792 793 |
# File 'lib/racc/grammar.rb', line 791 def name "=#{@symbol}" end |