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



82
83
84
85
86
87
88
# File 'lib/packcr/parser.rb', line 82

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

Instance Attribute Details

#captsObject

Returns the value of attribute capts.



80
81
82
# File 'lib/packcr/parser.rb', line 80

def capts
  @capts
end

#posObject

Returns the value of attribute pos.



80
81
82
# File 'lib/packcr/parser.rb', line 80

def pos
  @pos
end

#pos_locObject

Returns the value of attribute pos_loc.



80
81
82
# File 'lib/packcr/parser.rb', line 80

def pos_loc
  @pos_loc
end

#thunksObject

Returns the value of attribute thunks.



80
81
82
# File 'lib/packcr/parser.rb', line 80

def thunks
  @thunks
end

#valuesObject

Returns the value of attribute values.



80
81
82
# File 'lib/packcr/parser.rb', line 80

def values
  @values
end

Instance Method Details

#resize_captures(len) ⇒ Object



90
91
92
93
94
# File 'lib/packcr/parser.rb', line 90

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