Class: Packcr::Tokenizer::ThunkChunk
- Inherits:
-
Object
- Object
- Packcr::Tokenizer::ThunkChunk
- Defined in:
- lib/packcr/tokenizer.rb
Instance Attribute Summary collapse
-
#capts ⇒ Object
Returns the value of attribute capts.
-
#pos ⇒ Object
Returns the value of attribute pos.
-
#thunks ⇒ Object
Returns the value of attribute thunks.
-
#values ⇒ Object
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize ⇒ ThunkChunk
constructor
A new instance of ThunkChunk.
- #resize_captures(len) ⇒ Object
Constructor Details
#initialize ⇒ ThunkChunk
Returns a new instance of ThunkChunk.
2846 2847 2848 2849 2850 2851 2852 |
# File 'lib/packcr/tokenizer.rb', line 2846 def initialize super @thunks = [] @capts = {} @pos = 0 @values = {} end |
Instance Attribute Details
#capts ⇒ Object
Returns the value of attribute capts.
2844 2845 2846 |
# File 'lib/packcr/tokenizer.rb', line 2844 def capts @capts end |
#pos ⇒ Object
Returns the value of attribute pos.
2844 2845 2846 |
# File 'lib/packcr/tokenizer.rb', line 2844 def pos @pos end |
#thunks ⇒ Object
Returns the value of attribute thunks.
2844 2845 2846 |
# File 'lib/packcr/tokenizer.rb', line 2844 def thunks @thunks end |
#values ⇒ Object
Returns the value of attribute values.
2844 2845 2846 |
# File 'lib/packcr/tokenizer.rb', line 2844 def values @values end |
Instance Method Details
#resize_captures(len) ⇒ Object
2854 2855 2856 2857 2858 |
# File 'lib/packcr/tokenizer.rb', line 2854 def resize_captures(len) len.times do |i| @capts[i] = Capture.new end end |