Class: ParserCombinator::Fail
- Inherits:
-
Object
- Object
- ParserCombinator::Fail
- Defined in:
- lib/parser_combinator.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status = nil) ⇒ Fail
constructor
A new instance of Fail.
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
#status ⇒ Object (readonly)
Returns the value of attribute status.
14 15 16 |
# File 'lib/parser_combinator.rb', line 14 def status @status end |