class Faraday::RackBuilder::Handler
ActionDispatch::MiddlewareStack::Middleware
borrowed from ActiveSupport::Dependencies::Reference &
def ==(other)
def ==(other) if other.is_a? Handler self.name == other.name elsif other.respond_to? :name klass == other else @name == other.to_s end end
def build(app)
def build(app) klass.new(app, *@args, &@block) end
def initialize(klass, *args, &block)
def initialize(klass, *args, &block) @name = klass.to_s if klass.respond_to?(:name) @@constants_mutex.synchronize { @@constants[@name] = klass } end @args, @block = args, block end
def inspect() @name end
def inspect() @name end
def klass() @@constants[@name] end
def klass() @@constants[@name] end