Method: Ray::DSL::Handler#call

Defined in:
lib/ray/dsl/handler.rb

#call(event) ⇒ Object



17
18
19
20
21
22
23
# File 'lib/ray/dsl/handler.rb', line 17

def call(event)
  if @block.arity == 0
    @block.call
  else
    @block.call(*event.args)
  end
end