class DParse::Parsers::Fail
Public Instance Methods
expectation_message()
click to toggle source
# File lib/d-parse/parsers/primitives/fail.rb, line 12 def expectation_message 'nothing (always fail)' end
inspect()
click to toggle source
# File lib/d-parse/parsers/primitives/fail.rb, line 8 def inspect 'fail()' end
read(input, pos)
click to toggle source
# File lib/d-parse/parsers/primitives/fail.rb, line 4 def read(input, pos) Failure.new(input, pos, origin: self) end