Method: Jace::Dispatcher#initialize
- Defined in:
- lib/jace/dispatcher.rb
#initialize(before: [], after: []) ⇒ Dispatcher
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.
Returns a new instance of Dispatcher.
13 14 15 16 |
# File 'lib/jace/dispatcher.rb', line 13 def initialize(before: [], after: []) @before = [before].flatten.compact @after = [after].flatten.compact end |