Class: Rattler::Runtime::ExtendedPackratParser::Head

Inherits:
Object
  • Object
show all
Defined in:
lib/rattler/runtime/extended_packrat_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_setObject

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_setObject

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_nameObject

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

Returns:

  • (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