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.



4471
4472
4473
4474
4475
4476
4477
# File 'lib/packcr/parser.rb', line 4471

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

Instance Attribute Details

#captsObject

Returns the value of attribute capts.



4468
4469
4470
# File 'lib/packcr/parser.rb', line 4468

def capts
  @capts
end

#posObject

Returns the value of attribute pos.



4468
4469
4470
# File 'lib/packcr/parser.rb', line 4468

def pos
  @pos
end

#pos_locObject

Returns the value of attribute pos_loc.



4469
4470
4471
# File 'lib/packcr/parser.rb', line 4469

def pos_loc
  @pos_loc
end

#thunksObject

Returns the value of attribute thunks.



4468
4469
4470
# File 'lib/packcr/parser.rb', line 4468

def thunks
  @thunks
end

#valuesObject

Returns the value of attribute values.



4468
4469
4470
# File 'lib/packcr/parser.rb', line 4468

def values
  @values
end

Instance Method Details

#resize_captures(len) ⇒ Object



4479
4480
4481
4482
4483
# File 'lib/packcr/parser.rb', line 4479

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