Sha256: e48e72eeab2f5b8e2a785097316de02efda550c232450530611e5ed030d5da25
Contents?: true
Size: 666 Bytes
Versions: 166
Compression:
Stored size: 666 Bytes
Contents
# frozen_string_literal: true 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
166 entries across 166 versions & 1 rubygems