Class: Rack::App::CLI::DefaultCommands::ShowRoutes::FakeBuilder
- Inherits:
-
Object
- Object
- Rack::App::CLI::DefaultCommands::ShowRoutes::FakeBuilder
- Defined in:
- lib/rack/app/cli/default_commands/show_routes.rb
Instance Attribute Summary collapse
-
#middlewares ⇒ Object
readonly
Returns the value of attribute middlewares.
Instance Method Summary collapse
-
#initialize ⇒ FakeBuilder
constructor
A new instance of FakeBuilder.
- #use(middleware, *args) ⇒ Object
Constructor Details
#initialize ⇒ FakeBuilder
Returns a new instance of FakeBuilder.
89 90 91 |
# File 'lib/rack/app/cli/default_commands/show_routes.rb', line 89 def initialize @middlewares = [] end |
Instance Attribute Details
#middlewares ⇒ Object (readonly)
Returns the value of attribute middlewares.
87 88 89 |
# File 'lib/rack/app/cli/default_commands/show_routes.rb', line 87 def middlewares @middlewares end |
Instance Method Details
#use(middleware, *args) ⇒ Object
93 94 95 |
# File 'lib/rack/app/cli/default_commands/show_routes.rb', line 93 def use(middleware, *args) @middlewares << middleware end |