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.



4188
4189
4190
4191
4192
4193
4194
# File 'lib/packcr/parser.rb', line 4188

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

Instance Attribute Details

#captsObject

Returns the value of attribute capts.



4185
4186
4187
# File 'lib/packcr/parser.rb', line 4185

def capts
  @capts
end

#posObject

Returns the value of attribute pos.



4185
4186
4187
# File 'lib/packcr/parser.rb', line 4185

def pos
  @pos
end

#pos_locObject

Returns the value of attribute pos_loc.



4186
4187
4188
# File 'lib/packcr/parser.rb', line 4186

def pos_loc
  @pos_loc
end

#thunksObject

Returns the value of attribute thunks.



4185
4186
4187
# File 'lib/packcr/parser.rb', line 4185

def thunks
  @thunks
end

#valuesObject

Returns the value of attribute values.



4185
4186
4187
# File 'lib/packcr/parser.rb', line 4185

def values
  @values
end

Instance Method Details

#resize_captures(len) ⇒ Object



4196
4197
4198
4199
4200
# File 'lib/packcr/parser.rb', line 4196

def resize_captures(len)
  (@capts.length...len).each do |i|
    @capts << Capture.new
  end
end