class DParse::Parsers::Describe
Public Class Methods
new(parser, name)
click to toggle source
# File lib/d-parse/parsers/modifiers/describe.rb, line 4 def initialize(parser, name) @parser = parser @name = name end
Public Instance Methods
expectation_message()
click to toggle source
# File lib/d-parse/parsers/modifiers/describe.rb, line 23 def expectation_message @name end
inspect()
click to toggle source
# File lib/d-parse/parsers/modifiers/describe.rb, line 19 def inspect "#{@name}()" end
read(input, pos)
click to toggle source
# File lib/d-parse/parsers/modifiers/describe.rb, line 9 def read(input, pos) res = @parser.read(input, pos) case res when DParse::Success res when DParse::Failure Failure.new(res.input, res.pos, origin: self) end end