Exception: Walrat::LeftRecursionException

Inherits:
Exception
  • Object
show all
Defined in:
lib/walrat/left_recursion_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(continuation = nil) ⇒ LeftRecursionException

Returns a new instance of LeftRecursionException.



29
30
31
32
# File 'lib/walrat/left_recursion_exception.rb', line 29

def initialize continuation = nil
  super self.class.to_s
  @continuation = continuation
end

Instance Attribute Details

#continuationObject

Returns the value of attribute continuation.



27
28
29
# File 'lib/walrat/left_recursion_exception.rb', line 27

def continuation
  @continuation
end