Class: ParserCombinator::StandardFailStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/parser_combinator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, rest) ⇒ StandardFailStatus

Returns a new instance of StandardFailStatus.



22
23
24
# File 'lib/parser_combinator.rb', line 22

def initialize(message, rest)
  @message, @rest = message, rest
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



21
22
23
# File 'lib/parser_combinator.rb', line 21

def message
  @message
end

#restObject (readonly)

Returns the value of attribute rest.



21
22
23
# File 'lib/parser_combinator.rb', line 21

def rest
  @rest
end