Sha256: fdaa0ec2e1aae3718dcd86916e8ea72cd05856a6c598967deb959a119404fb41
Contents?: true
Size: 635 Bytes
Versions: 1225
Compression:
Stored size: 635 Bytes
Contents
module Seahorse module Client class Handler # @param [Handler] handler (nil) The next handler in the stack that # should be called from within the {#call} method. This value # must only be nil for send handlers. def initialize(handler = nil) @handler = handler end # @return [Handler, nil] attr_accessor :handler # @param [RequestContext] context # @return [Response] def call(context) @handler.call(context) end def inspect "#<#{self.class.name||'UnnamedHandler'} @handler=#{@handler.inspect}>" end end end end
Version data entries
1,225 entries across 1,225 versions & 2 rubygems