Module: Temple::Mixins::CoreDispatcher Private
- Included in:
- Dispatcher
- Defined in:
- lib/temple/mixins/dispatcher.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #on_capture(name, exp) ⇒ Object private
- #on_multi(*exps) ⇒ Object private
Instance Method Details
#on_capture(name, exp) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 |
# File 'lib/temple/mixins/dispatcher.rb', line 12 def on_capture(name, exp) [:capture, name, compile(exp)] end |
#on_multi(*exps) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
6 7 8 9 10 |
# File 'lib/temple/mixins/dispatcher.rb', line 6 def on_multi(*exps) multi = [:multi] exps.each {|exp| multi << compile(exp) } multi end |