Sha256: edf7f1d15560a773dc3a632e5879a53f7c756dc5095258032cd0edf19d406252
Contents?: true
Size: 485 Bytes
Versions: 76
Compression:
Stored size: 485 Bytes
Contents
module Treetop module Runtime class TerminalParseFailure attr_reader :index def initialize(index, expected_string) @index = index @caller = caller @expected_string = expected_string end def expected_string "#{@expected_string} from #{@caller.map{|s| s.sub(/\A.*:([0-9]+):in `([^']*)'.*/,'\2:\1')}*" from "}\n\t" end def to_s "String matching #{expected_string} expected." end end end end
Version data entries
76 entries across 46 versions & 4 rubygems