Class: Racc::OrMark

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lineno) ⇒ OrMark

Returns a new instance of OrMark.



778
779
780
# File 'lib/racc/grammar.rb', line 778

def initialize(lineno)
  @lineno = lineno
end

Instance Attribute Details

#linenoObject (readonly)

Returns the value of attribute lineno.



788
789
790
# File 'lib/racc/grammar.rb', line 788

def lineno
  @lineno
end

Instance Method Details

#nameObject Also known as: inspect



782
783
784
# File 'lib/racc/grammar.rb', line 782

def name
  '|'
end