方法
属性
[R] | args | |
[R] | block | |
[R] | klass |
类公共方法
new(klass, args, block) 链接
源代码: 显示 | 在 GitHub 上
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 18 def initialize(klass, args, block) @klass = klass @args = args @block = block end
实例公共方法
==(middleware) 链接
源代码: 显示 | 在 GitHub 上
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 26 def ==(middleware) case middleware when Middleware klass == middleware.klass when Module klass == middleware end end
build(app) 链接
源代码: 显示 | 在 GitHub 上
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 43 def build(app) klass.new(app, *args, &block) end
build_instrumented(app) 链接
源代码: 显示 | 在 GitHub 上
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 47 def build_instrumented(app) InstrumentationProxy.new(build(app), inspect) end
inspect() 链接
源代码: 显示 | 在 GitHub 上
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 35 def inspect if klass.is_a?(Module) klass.to_s else klass.class.to_s end end
name() 链接
源代码: 显示 | 在 GitHub 上
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 24 def name; klass.name; end