Class: Racc::OptionMark

Inherits:
Object show all
Defined in:
lib/racc/grammar.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lineno) ⇒ OptionMark

Returns a new instance of OptionMark.



793
794
795
# File 'lib/racc/grammar.rb', line 793

def initialize(lineno)
  @lineno = lineno
end

Instance Attribute Details

#linenoObject (readonly)

Returns the value of attribute lineno.



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

def lineno
  @lineno
end

Instance Method Details

#nameObject Also known as: inspect



797
798
799
# File 'lib/racc/grammar.rb', line 797

def name
  '?'
end