Class: Packcr::Parser::ThunkChunk
- Inherits:
-
Object
- Object
- Packcr::Parser::ThunkChunk
- Defined in:
- lib/packcr/parser.rb
Instance Attribute Summary collapse
-
#capts ⇒ Object
Returns the value of attribute capts.
-
#pos ⇒ Object
Returns the value of attribute pos.
-
#pos_loc ⇒ Object
Returns the value of attribute pos_loc.
-
#thunks ⇒ Object
Returns the value of attribute thunks.
-
#values ⇒ Object
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize ⇒ ThunkChunk
constructor
A new instance of ThunkChunk.
- #resize_captures(len) ⇒ Object
Constructor Details
#initialize ⇒ ThunkChunk
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
#capts ⇒ Object
Returns the value of attribute capts.
4185 4186 4187 |
# File 'lib/packcr/parser.rb', line 4185 def capts @capts end |
#pos ⇒ Object
Returns the value of attribute pos.
4185 4186 4187 |
# File 'lib/packcr/parser.rb', line 4185 def pos @pos end |
#pos_loc ⇒ Object
Returns the value of attribute pos_loc.
4186 4187 4188 |
# File 'lib/packcr/parser.rb', line 4186 def pos_loc @pos_loc end |
#thunks ⇒ Object
Returns the value of attribute thunks.
4185 4186 4187 |
# File 'lib/packcr/parser.rb', line 4185 def thunks @thunks end |
#values ⇒ Object
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 |