Class: Rattler::Runtime::ExtendedPackratParser::Head
- Inherits:
-
Object
- Object
- Rattler::Runtime::ExtendedPackratParser::Head
- Defined in:
- lib/rattler/runtime/extended_packrat_parser.rb
Instance Attribute Summary collapse
-
#eval_set ⇒ Object
Returns the value of attribute eval_set.
-
#involved_set ⇒ Object
Returns the value of attribute involved_set.
-
#match_method_name ⇒ Object
Returns the value of attribute match_method_name.
Instance Method Summary collapse
-
#initialize(match_method_name) ⇒ Head
constructor
:nodoc:.
- #involves?(match_method_name) ⇒ Boolean
Constructor Details
#initialize(match_method_name) ⇒ Head
:nodoc:
119 120 121 122 123 |
# File 'lib/rattler/runtime/extended_packrat_parser.rb', line 119 def initialize(match_method_name) @match_method_name = match_method_name @involved_set = {} @eval_set = {} end |
Instance Attribute Details
#eval_set ⇒ Object
Returns the value of attribute eval_set.
124 125 126 |
# File 'lib/rattler/runtime/extended_packrat_parser.rb', line 124 def eval_set @eval_set end |
#involved_set ⇒ Object
Returns the value of attribute involved_set.
124 125 126 |
# File 'lib/rattler/runtime/extended_packrat_parser.rb', line 124 def involved_set @involved_set end |
#match_method_name ⇒ Object
Returns the value of attribute match_method_name.
124 125 126 |
# File 'lib/rattler/runtime/extended_packrat_parser.rb', line 124 def match_method_name @match_method_name end |
Instance Method Details
#involves?(match_method_name) ⇒ Boolean
125 126 127 |
# File 'lib/rattler/runtime/extended_packrat_parser.rb', line 125 def involves?(match_method_name) match_method_name == self.match_method_name or involved_set.has_key? match_method_name end |