Parent

Class/Module Index [+]

Quicksearch

Treetop::Runtime::TerminalParseFailure

Attributes

index[R]

Public Class Methods

new(index, expected_string) click to toggle source
# File lib/treetop/runtime/terminal_parse_failure_debug.rb, line 6
def initialize(index, expected_string)
  @index = index
  @caller = caller
  @expected_string = expected_string
end

Public Instance Methods

expected_string() click to toggle source
# File lib/treetop/runtime/terminal_parse_failure_debug.rb, line 12
def expected_string
  "#{@expected_string} from #{@caller.map{|s| s.sub(/\A.*:([0-9]+):in `([^']*)'.*/,'\2:\1')}*" from "}\n\t"
end
to_s() click to toggle source
# File lib/treetop/runtime/terminal_parse_failure_debug.rb, line 16
def to_s
  "String matching #{expected_string} expected."
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.