Class: Packcr::Tokenizer::LrHead

Inherits:
Object
  • Object
show all
Defined in:
lib/packcr/tokenizer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#evalObject

Returns the value of attribute eval.



2827
2828
2829
# File 'lib/packcr/tokenizer.rb', line 2827

def eval
  @eval
end

#involObject

Returns the value of attribute invol.



2827
2828
2829
# File 'lib/packcr/tokenizer.rb', line 2827

def invol
  @invol
end

#rule_nameObject

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_evalObject



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