Class: Packcr::Parser::LrHead
- Inherits:
-
Object
- Object
- Packcr::Parser::LrHead
- Defined in:
- lib/packcr/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.
-
#rule_name ⇒ Object
Returns the value of attribute rule_name.
Instance Method Summary collapse
-
#initialize(rule_name) ⇒ LrHead
constructor
A new instance of LrHead.
- #involved_set_to_eval_set ⇒ Object
Constructor Details
#initialize(rule_name) ⇒ LrHead
Returns a new instance of LrHead.
4453 4454 4455 4456 4457 |
# File 'lib/packcr/parser.rb', line 4453 def initialize(rule_name) @rule_name = rule_name @involved_set = {} @eval_set = {} end |
Instance Attribute Details
#eval_set ⇒ Object
Returns the value of attribute eval_set.
4451 4452 4453 |
# File 'lib/packcr/parser.rb', line 4451 def eval_set @eval_set end |
#involved_set ⇒ Object
Returns the value of attribute involved_set.
4451 4452 4453 |
# File 'lib/packcr/parser.rb', line 4451 def involved_set @involved_set end |
#rule_name ⇒ Object
Returns the value of attribute rule_name.
4451 4452 4453 |
# File 'lib/packcr/parser.rb', line 4451 def rule_name @rule_name end |
Instance Method Details
#involved_set_to_eval_set ⇒ Object
4459 4460 4461 4462 4463 4464 |
# File 'lib/packcr/parser.rb', line 4459 def involved_set_to_eval_set @eval_set.clear @involved_set.each do |k, v| @eval_set[k] = true end end |