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.

Parameters:

  • before (Symbol, Proc, Array) (defaults to: [])

    all the methods / proc to be executed before block call

  • after (Symbol, Proc, Array) (defaults to: [])

    all the methods / proc to be executed after block call



13
14
15
16
# File 'lib/jace/dispatcher.rb', line 13

def initialize(before: [], after: [])
  @before = [before].flatten.compact
  @after = [after].flatten.compact
end