123456789_123456789_123456789_123456789_123456789_

Class: Racc::Prec

Relationships & Source Files
Inherits: Object
Defined in: lib/racc/grammar.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(symbol, lineno) ⇒ Prec

[ GitHub ]

  
# File 'lib/racc/grammar.rb', line 791

def initialize(symbol, lineno)
  @symbol = symbol
  @lineno = lineno
end

Instance Attribute Details

#lineno (readonly)

[ GitHub ]

  
# File 'lib/racc/grammar.rb', line 803

attr_reader :lineno

#symbol (readonly)

[ GitHub ]

  
# File 'lib/racc/grammar.rb', line 802

attr_reader :symbol

Instance Method Details

#inspect

Alias for #name.

[ GitHub ]

  
# File 'lib/racc/grammar.rb', line 800

alias inspect name

#name Also known as: #inspect

[ GitHub ]

  
# File 'lib/racc/grammar.rb', line 796

def name
  "=#{@symbol}"
end