edge badge
Methods
#
B
I
N
Attributes
[R] args
[R] block
[R] klass
Class Public methods
new(klass, args, block)
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 9
def initialize(klass, args, block)
  @klass = klass
  @args  = args
  @block = block
end
Instance Public methods
==(middleware)
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 17
def ==(middleware)
  case middleware
  when Middleware
    klass == middleware.klass
  when Class
    klass == middleware
  end
end
build(app)
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 34
def build(app)
  klass.new(app, *args, &block)
end
inspect()
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 26
def inspect
  if klass.is_a?(Class)
    klass.to_s
  else
    klass.class.to_s
  end
end
name()
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 15
def name; klass.name; end