Sha256: 0b98fa3e4bd266ccf4522979fd343dbd1a12e9f5b22da6b49f748d56bd394bfc

Contents?: true

Size: 300 Bytes

Versions: 19

Compression:

Stored size: 300 Bytes

Contents

require 'pathway/responder'

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

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
pathway-0.7.0 lib/pathway/plugins/responder.rb
pathway-0.6.2 lib/pathway/plugins/responder.rb
pathway-0.6.1 lib/pathway/plugins/responder.rb
pathway-0.6.0 lib/pathway/plugins/responder.rb
pathway-0.5.1 lib/pathway/plugins/responder.rb
pathway-0.5.0 lib/pathway/plugins/responder.rb
pathway-0.4.0 lib/pathway/plugins/responder.rb
pathway-0.0.20 lib/pathway/plugins/responder.rb
pathway-0.0.19 lib/pathway/plugins/responder.rb
pathway-0.0.18 lib/pathway/plugins/responder.rb
pathway-0.0.17 lib/pathway/plugins/responder.rb
pathway-0.0.16 lib/pathway/plugins/responder.rb
pathway-0.0.15 lib/pathway/plugins/responder.rb
pathway-0.0.14 lib/pathway/plugins/responder.rb
pathway-0.0.13 lib/pathway/plugins/responder.rb
pathway-0.0.12 lib/pathway/plugins/responder.rb
pathway-0.0.11 lib/pathway/plugins/responder.rb
pathway-0.0.10 lib/pathway/plugins/responder.rb
pathway-0.0.9 lib/pathway/plugins/responder.rb