Class: ParserCombinator::Ok

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#parsedObject (readonly)

Returns the value of attribute parsed.



7
8
9
# File 'lib/parser_combinator.rb', line 7

def parsed
  @parsed
end

#restObject (readonly)

Returns the value of attribute rest.



7
8
9
# File 'lib/parser_combinator.rb', line 7

def rest
  @rest
end