Class: Drudge::Parsers::ParseResults::Failure

Inherits:
Struct
  • Object
show all
Includes:
NotSuccess
Defined in:
lib/drudge/parsers/parse_results.rb

Overview

A failure that allows for backtracking

Instance Attribute Summary collapse

Method Summary

Methods included from NotSuccess

#flat_map, #flat_map_with_next, #map, #map_in_parse_value, #success?

Methods included from ParseResult

#+, #flat_map, #flat_map_with_next, #map, #map_in_parse_value, #success?

Instance Attribute Details

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



134
135
136
# File 'lib/drudge/parsers/parse_results.rb', line 134

def message
  @message
end

#remainingObject

Returns the value of attribute remaining

Returns:

  • (Object)

    the current value of remaining



134
135
136
# File 'lib/drudge/parsers/parse_results.rb', line 134

def remaining
  @remaining
end