Class: Packcr::Tokenizer::LrTable

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLrTable

Returns a new instance of LrTable.



2796
2797
2798
2799
# File 'lib/packcr/tokenizer.rb', line 2796

def initialize
  @heads = {}
  @answers = LrAnswerTable.new
end

Instance Attribute Details

#answersObject (readonly)

Returns the value of attribute answers.



2794
2795
2796
# File 'lib/packcr/tokenizer.rb', line 2794

def answers
  @answers
end

#headsObject (readonly)

Returns the value of attribute heads.



2794
2795
2796
# File 'lib/packcr/tokenizer.rb', line 2794

def heads
  @heads
end

Instance Method Details

#clearObject



2801
2802
2803
2804
# File 'lib/packcr/tokenizer.rb', line 2801

def clear
  @heads.clear
  @answers.clear
end