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.


773
774
775
# File 'lib/racc/grammar.rb', line 773

def initialize(lineno)
  @lineno = lineno
end

Instance Attribute Details

#linenoObject (readonly)

Returns the value of attribute lineno


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

def lineno
  @lineno
end

Instance Method Details

#nameObject Also known as: inspect


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

def name
  '|'
end