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

- (Object) on_capture(name, exp)

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

- (Object) on_multi(*exps)

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