Module: Specter::Middleware
- Defined in:
- lib/specter/middleware.rb,
lib/specter/middleware/base.rb,
lib/specter/middleware/proxy.rb,
lib/specter/middleware/fixture.rb,
lib/specter/middleware/missing.rb
Defined Under Namespace
Classes: Base, Fixture, Missing, Proxy
Class Method Summary
collapse
Class Method Details
.new(server) ⇒ Object
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/specter/middleware.rb', line 11
def self.new(server)
::Middleware::Builder.new do
use Fixture, server
use Proxy, server if server.options[:proxy]
yield if block_given?
use Missing, server
end
end
|