Class: Packcr::Parser::ThunkLeaf
- Inherits:
-
Object
- Object
- Packcr::Parser::ThunkLeaf
- Defined in:
- lib/packcr/parser.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#capt0 ⇒ Object
Returns the value of attribute capt0.
-
#capts ⇒ Object
Returns the value of attribute capts.
-
#value_refs ⇒ Object
Returns the value of attribute value_refs.
Instance Method Summary collapse
- #do_action(ctx, values, index) ⇒ Object
-
#initialize(action, capt0 = Capture.new, value_refs = {}, capts = {}) ⇒ ThunkLeaf
constructor
A new instance of ThunkLeaf.
Constructor Details
#initialize(action, capt0 = Capture.new, value_refs = {}, capts = {}) ⇒ ThunkLeaf
Returns a new instance of ThunkLeaf.
4837 4838 4839 4840 4841 4842 |
# File 'lib/packcr/parser.rb', line 4837 def initialize(action, capt0 = Capture.new, value_refs = {}, capts = {}) @value_refs = value_refs @capts = capts @capt0 = capt0 @action = action end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
4835 4836 4837 |
# File 'lib/packcr/parser.rb', line 4835 def action @action end |
#capt0 ⇒ Object
Returns the value of attribute capt0.
4835 4836 4837 |
# File 'lib/packcr/parser.rb', line 4835 def capt0 @capt0 end |
#capts ⇒ Object
Returns the value of attribute capts.
4835 4836 4837 |
# File 'lib/packcr/parser.rb', line 4835 def capts @capts end |
#value_refs ⇒ Object
Returns the value of attribute value_refs.
4835 4836 4837 |
# File 'lib/packcr/parser.rb', line 4835 def value_refs @value_refs end |
Instance Method Details
#do_action(ctx, values, index) ⇒ Object
4844 4845 4846 |
# File 'lib/packcr/parser.rb', line 4844 def do_action(ctx, values, index) ctx.public_send(action, self, values, index) end |