ActionDispatch::MiddlewareStack::Middleware Ruby on Rails 5.1.2 Class ActionDispatch::MiddlewareStack::Middleware < Object actionpack/lib/action_dispatch/middleware/stack.rb Methods # == B build I inspect N name, new Attributes [R] args [R] block [R] klass Class Public methods new(klass, args, block) Link Source: show | on GitHub # 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) Link Source: show | on GitHub # 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) Link Source: show | on GitHub # File actionpack/lib/action_dispatch/middleware/stack.rb, line 34 def build(app) klass.new(app, *args, &block) end inspect() Link Source: show | on GitHub # 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() Link Source: show | on GitHub # File actionpack/lib/action_dispatch/middleware/stack.rb, line 15 def name; klass.name; end