Class: Rack::App::CLI::DefaultCommands::ShowRoutes::FakeBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/app/cli/default_commands/show_routes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFakeBuilder

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

#middlewaresObject (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