Class: RaddDjur::Grammar::Parsed

Inherits:
Result
  • Object
show all
Defined in:
lib/radd_djur/grammar.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, remainder) ⇒ Parsed

Returns a new instance of Parsed.



14
15
16
17
# File 'lib/radd_djur/grammar.rb', line 14

def initialize(value, remainder)
  @value = value
  @remainder = remainder
end

Instance Attribute Details

#remainderObject (readonly)

Returns the value of attribute remainder.



12
13
14
# File 'lib/radd_djur/grammar.rb', line 12

def remainder
  @remainder
end

#valueObject (readonly)

Returns the value of attribute value.



12
13
14
# File 'lib/radd_djur/grammar.rb', line 12

def value
  @value
end

Instance Method Details

#succeeded?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/radd_djur/grammar.rb', line 19

def succeeded?
  true
end