Module: Pathway::Plugins::Responder::ClassMethods

Defined in:
lib/pathway/plugins/responder.rb

Instance Method Summary collapse

Instance Method Details

#call(ctx, *params, &bl) ⇒ Object



7
8
9
10
# File 'lib/pathway/plugins/responder.rb', line 7

def call(ctx, *params, &bl)
  result = new(ctx).call(*params)
  block_given? ? Pathway::Responder.respond(result, &bl) : result
end