Class: Packcr::Tokenizer::LrHead
- Inherits:
-
Object
- Object
- Packcr::Tokenizer::LrHead
- Defined in:
- lib/packcr/tokenizer.rb
Instance Attribute Summary collapse
-
#eval ⇒ Object
Returns the value of attribute eval.
-
#invol ⇒ Object
Returns the value of attribute invol.
-
#rule_name ⇒ Object
Returns the value of attribute rule_name.
Instance Method Summary collapse
-
#initialize(rule_name) ⇒ LrHead
constructor
A new instance of LrHead.
- #invol_to_eval ⇒ Object
Constructor Details
#initialize(rule_name) ⇒ LrHead
Returns a new instance of LrHead.
2829 2830 2831 2832 2833 |
# File 'lib/packcr/tokenizer.rb', line 2829 def initialize(rule_name) @rule_name = rule_name @invol = {} @eval = {} end |
Instance Attribute Details
#eval ⇒ Object
Returns the value of attribute eval.
2827 2828 2829 |
# File 'lib/packcr/tokenizer.rb', line 2827 def eval @eval end |
#invol ⇒ Object
Returns the value of attribute invol.
2827 2828 2829 |
# File 'lib/packcr/tokenizer.rb', line 2827 def invol @invol end |
#rule_name ⇒ Object
Returns the value of attribute rule_name.
2827 2828 2829 |
# File 'lib/packcr/tokenizer.rb', line 2827 def rule_name @rule_name end |
Instance Method Details
#invol_to_eval ⇒ Object
2835 2836 2837 2838 2839 2840 |
# File 'lib/packcr/tokenizer.rb', line 2835 def invol_to_eval @eval.clear @invol.each do |k, v| @eval[k] = true end end |