Class: Goliath::Rack::Builder
- Inherits:
-
Rack::Builder
- Object
- Rack::Builder
- Goliath::Rack::Builder
- Includes:
- Params::Parser
- Defined in:
- lib/goliath/rack/builder.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
Returns the value of attribute params.
Class Method Summary collapse
-
.build(klass, api) ⇒ Object
Builds the rack middleware chain for the given API.
Methods included from Params::Parser
Instance Attribute Details
#params ⇒ Object
Returns the value of attribute params.
4 5 6 |
# File 'lib/goliath/rack/builder.rb', line 4 def params @params end |
Class Method Details
.build(klass, api) ⇒ Object
Builds the rack middleware chain for the given API
12 13 14 15 16 17 18 19 |
# File 'lib/goliath/rack/builder.rb', line 12 def self.build(klass, api) Builder.app do klass.middlewares.each do |mw_klass, args, blk| use(mw_klass, *args, &blk) end run api end end |