Class: Packcr::Tokenizer::ThunkChunk

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeThunkChunk

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

#captsObject

Returns the value of attribute capts.



2844
2845
2846
# File 'lib/packcr/tokenizer.rb', line 2844

def capts
  @capts
end

#posObject

Returns the value of attribute pos.



2844
2845
2846
# File 'lib/packcr/tokenizer.rb', line 2844

def pos
  @pos
end

#thunksObject

Returns the value of attribute thunks.



2844
2845
2846
# File 'lib/packcr/tokenizer.rb', line 2844

def thunks
  @thunks
end

#valuesObject

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