Class: Packcr::Tokenizer::LrTable
- Inherits:
-
Object
- Object
- Packcr::Tokenizer::LrTable
- Defined in:
- lib/packcr/tokenizer.rb
Instance Attribute Summary collapse
-
#answers ⇒ Object
readonly
Returns the value of attribute answers.
-
#heads ⇒ Object
readonly
Returns the value of attribute heads.
Instance Method Summary collapse
- #clear ⇒ Object
-
#initialize ⇒ LrTable
constructor
A new instance of LrTable.
Constructor Details
#initialize ⇒ LrTable
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
#answers ⇒ Object (readonly)
Returns the value of attribute answers.
2794 2795 2796 |
# File 'lib/packcr/tokenizer.rb', line 2794 def answers @answers end |
#heads ⇒ Object (readonly)
Returns the value of attribute heads.
2794 2795 2796 |
# File 'lib/packcr/tokenizer.rb', line 2794 def heads @heads end |
Instance Method Details
#clear ⇒ Object
2801 2802 2803 2804 |
# File 'lib/packcr/tokenizer.rb', line 2801 def clear @heads.clear @answers.clear end |