Class: Packcr::Parser::ThunkChunk

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeThunkChunk

Returns a new instance of ThunkChunk.



4813
4814
4815
4816
4817
4818
4819
# File 'lib/packcr/parser.rb', line 4813

def initialize
  super
  @thunks = []
  @capts = {}
  @pos = 0
  @values = {}
end

Instance Attribute Details

#captsObject

Returns the value of attribute capts.



4811
4812
4813
# File 'lib/packcr/parser.rb', line 4811

def capts
  @capts
end

#posObject

Returns the value of attribute pos.



4811
4812
4813
# File 'lib/packcr/parser.rb', line 4811

def pos
  @pos
end

#pos_locObject

Returns the value of attribute pos_loc.



4811
4812
4813
# File 'lib/packcr/parser.rb', line 4811

def pos_loc
  @pos_loc
end

#thunksObject

Returns the value of attribute thunks.



4811
4812
4813
# File 'lib/packcr/parser.rb', line 4811

def thunks
  @thunks
end

#valuesObject

Returns the value of attribute values.



4811
4812
4813
# File 'lib/packcr/parser.rb', line 4811

def values
  @values
end

Instance Method Details

#resize_captures(len) ⇒ Object



4821
4822
4823
4824
4825
# File 'lib/packcr/parser.rb', line 4821

def resize_captures(len)
  len.times do |i|
    @capts[i] = Capture.new
  end
end