Class: ParserCombinator::Ok
- Inherits:
-
Object
- Object
- ParserCombinator::Ok
- Defined in:
- lib/parser_combinator.rb
Instance Attribute Summary collapse
-
#parsed ⇒ Object
readonly
Returns the value of attribute parsed.
-
#rest ⇒ Object
readonly
Returns the value of attribute rest.
Instance Method Summary collapse
-
#initialize(parsed, rest) ⇒ Ok
constructor
A new instance of Ok.
Constructor Details
#initialize(parsed, rest) ⇒ Ok
Returns a new instance of Ok.
8 9 10 |
# File 'lib/parser_combinator.rb', line 8 def initialize(parsed, rest) @parsed, @rest = parsed, rest end |
Instance Attribute Details
#parsed ⇒ Object (readonly)
Returns the value of attribute parsed.
7 8 9 |
# File 'lib/parser_combinator.rb', line 7 def parsed @parsed end |
#rest ⇒ Object (readonly)
Returns the value of attribute rest.
7 8 9 |
# File 'lib/parser_combinator.rb', line 7 def rest @rest end |