Class: RaddDjur::Grammar::Parsed
- Defined in:
- lib/radd_djur/grammar.rb
Instance Attribute Summary collapse
-
#remainder ⇒ Object
readonly
Returns the value of attribute remainder.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, remainder) ⇒ Parsed
constructor
A new instance of Parsed.
- #succeeded? ⇒ Boolean
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
#remainder ⇒ Object (readonly)
Returns the value of attribute remainder.
12 13 14 |
# File 'lib/radd_djur/grammar.rb', line 12 def remainder @remainder end |
#value ⇒ Object (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
19 20 21 |
# File 'lib/radd_djur/grammar.rb', line 19 def succeeded? true end |