Methods

Attributes

[R] args
[R] block
[R] klass

Class Public methods

new(klass, args, block)

📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 16
      def initialize(klass, args, block)
        @klass = klass
        @args  = args
        @block = block
      end
🔎 See on GitHub

Instance Public methods

==(middleware)

📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 24
      def ==(middleware)
        case middleware
        when Middleware
          klass == middleware.klass
        when Module
          klass == middleware
        end
      end
🔎 See on GitHub

build(app)

📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 41
      def build(app)
        klass.new(app, *args, &block)
      end
🔎 See on GitHub

build_instrumented(app)

📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 45
      def build_instrumented(app)
        InstrumentationProxy.new(build(app), inspect)
      end
🔎 See on GitHub

inspect()

📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 33
      def inspect
        if klass.is_a?(Module)
          klass.to_s
        else
          klass.class.to_s
        end
      end
🔎 See on GitHub

name()

📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 22
      def name; klass.name; end
🔎 See on GitHub