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

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.



11
12
13
# File 'lib/temple/mixins/dispatcher.rb', line 11

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.



5
6
7
8
9
# File 'lib/temple/mixins/dispatcher.rb', line 5

def on_multi(*exps)
  multi = [:multi]
  exps.each {|exp| multi << compile(exp) }
  multi
end