Class: Packcr::Tokenizer::ThunkNode
- Defined in:
- lib/packcr/tokenizer.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.
2880 2881 2882 |
# File 'lib/packcr/tokenizer.rb', line 2880 def index @index end |
#thunks ⇒ Object
Returns the value of attribute thunks.
2880 2881 2882 |
# File 'lib/packcr/tokenizer.rb', line 2880 def thunks @thunks end |
#values ⇒ Object
Returns the value of attribute values.
2880 2881 2882 |
# File 'lib/packcr/tokenizer.rb', line 2880 def values @values end |
Instance Method Details
#clear ⇒ Object
2895 2896 2897 |
# File 'lib/packcr/tokenizer.rb', line 2895 def clear @thunks.clear end |
#do_action(ctx, _values, _index) ⇒ Object
2889 2890 2891 2892 2893 |
# File 'lib/packcr/tokenizer.rb', line 2889 def do_action(ctx, _values, _index) @thunks.each do |thunk| thunk.do_action(ctx, @values, @index) end end |