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.
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
#capts ⇒ Object
Returns the value of attribute capts.
4811 4812 4813 |
# File 'lib/packcr/parser.rb', line 4811 def capts @capts end |
#pos ⇒ Object
Returns the value of attribute pos.
4811 4812 4813 |
# File 'lib/packcr/parser.rb', line 4811 def pos @pos end |
#pos_loc ⇒ Object
Returns the value of attribute pos_loc.
4811 4812 4813 |
# File 'lib/packcr/parser.rb', line 4811 def pos_loc @pos_loc end |
#thunks ⇒ Object
Returns the value of attribute thunks.
4811 4812 4813 |
# File 'lib/packcr/parser.rb', line 4811 def thunks @thunks end |
#values ⇒ Object
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 |