class Kingfisher::MiddlewareStack

Attributes

middlewares[R]

Public Class Methods

new() click to toggle source
# File lib/kingfisher/middleware.rb, line 12
def initialize
  @middlewares = []
end

Public Instance Methods

each() { |x| ... } click to toggle source
# File lib/kingfisher/middleware.rb, line 16
def each
  middlewares.each { |x| yield x }
end
use(klass, *args, &block) click to toggle source
# File lib/kingfisher/middleware.rb, line 20
def use(klass, *args, &block)
  middlewares.push(Middleware.new(klass, args, block))
end