Class: KPeg::Parser::LeftRecursive

Inherits:
Object
  • Object
show all
Defined in:
lib/kpeg/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(detected = false) ⇒ LeftRecursive

Returns a new instance of LeftRecursive.



50
51
52
# File 'lib/kpeg/parser.rb', line 50

def initialize(detected=false)
  @detected = detected
end

Instance Attribute Details

#detectedObject

Returns the value of attribute detected.



54
55
56
# File 'lib/kpeg/parser.rb', line 54

def detected
  @detected
end