Module: CassetteRack

Defined in:
lib/cassette-rack/response.rb,
lib/cassette-rack.rb,
lib/cassette-rack/tree.rb,
lib/cassette-rack/drawer.rb,
lib/cassette-rack/engine.rb,
lib/cassette-rack/default.rb,
lib/cassette-rack/request.rb,
lib/cassette-rack/version.rb,
lib/cassette-rack/configure.rb,
lib/cassette-rack/tree/leaf.rb,
lib/cassette-rack/tree/branch.rb,
lib/cassette-rack/decorator/request.rb,
lib/cassette-rack/decorator/response.rb,
lib/cassette-rack/response/raise_error.rb

Overview

require ‘json’

Defined Under Namespace

Modules: Configure, Decorator, Default, Request, Tree Classes: Drawer, Engine, Response

Constant Summary collapse

VERSION =
'0.6.0'.freeze

Class Method Summary collapse

Class Method Details

.configObject



18
19
20
# File 'lib/cassette-rack.rb', line 18

def config
  CassetteRack::Configure
end

.configure {|CassetteRack::Configure| ... } ⇒ Object



14
15
16
# File 'lib/cassette-rack.rb', line 14

def configure
  yield CassetteRack::Configure
end

.rootObject



22
23
24
# File 'lib/cassette-rack.rb', line 22

def root
  @root ||= Pathname.new(File.expand_path('..', File.dirname(__FILE__)))
end