Class: Packcr::Parser::ThunkNode
- Inherits:
-
Object
- Object
- Packcr::Parser::ThunkNode
- Defined in:
- lib/packcr/parser.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
-
#thunks ⇒ Object
Returns the value of attribute thunks.
-
#values ⇒ Object
Returns the value of attribute values.
Instance Method Summary collapse
- #clear ⇒ Object
- #do_action(ctx, _values, _index) ⇒ Object
-
#initialize(thunks, values, index) ⇒ ThunkNode
constructor
A new instance of ThunkNode.
Constructor Details
Instance Attribute Details
#index ⇒ Object
Returns the value of attribute index.
4844 4845 4846 |
# File 'lib/packcr/parser.rb', line 4844 def index @index end |
#thunks ⇒ Object
Returns the value of attribute thunks.
4844 4845 4846 |
# File 'lib/packcr/parser.rb', line 4844 def thunks @thunks end |
#values ⇒ Object
Returns the value of attribute values.
4844 4845 4846 |
# File 'lib/packcr/parser.rb', line 4844 def values @values end |
Instance Method Details
#clear ⇒ Object
4859 4860 4861 |
# File 'lib/packcr/parser.rb', line 4859 def clear @thunks.clear end |
#do_action(ctx, _values, _index) ⇒ Object
4853 4854 4855 4856 4857 |
# File 'lib/packcr/parser.rb', line 4853 def do_action(ctx, _values, _index) @thunks.each do |thunk| thunk.do_action(ctx, @values, @index) end end |