Class: ParserCombinator::Fail

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status = nil) ⇒ Fail

Returns a new instance of Fail.



15
16
17
# File 'lib/parser_combinator.rb', line 15

def initialize(status=nil)
  @status = status
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



14
15
16
# File 'lib/parser_combinator.rb', line 14

def status
  @status
end