class VCR::Middleware::Rack
def initialize(app, &block)
-
(ArgumentError)
- if no configuration block is provided
Other tags:
- Yieldparam: env - the rack env hash
Yieldparam: cassette - the cassette configuration object
Other tags:
- Yield: - the cassette configuration block
Parameters:
-
app
(#call
) -- the rack app
def initialize(app, &block) raise ArgumentError.new("You must provide a block to set the cassette options") unless block @app, @cassette_arguments_block, @mutex = app, block, Mutex.new end