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