Module: RockingChair

Defined in:
lib/rocking_chair.rb,
lib/rocking_chair/view.rb,
lib/rocking_chair/error.rb,
lib/rocking_chair/helper.rb,
lib/rocking_chair/server.rb,
lib/rocking_chair/database.rb,
lib/rocking_chair/http_adapter.rb,
lib/rocking_chair/couch_rest_http_adapter.rb

Defined Under Namespace

Modules: CouchRestHttpAdapter, Helper, HttpAdapter, Server Classes: Database, Error, View

Class Method Summary collapse

Class Method Details

.disableObject



32
33
34
# File 'lib/rocking_chair.rb', line 32

def self.disable
  @_rocking_chair_enabled = false
end

.disable_debugObject



44
45
46
# File 'lib/rocking_chair.rb', line 44

def self.disable_debug
  RockingChair::CouchRestHttpAdapter.instance_variable_set("@_rocking_chair_debug", false)
end

.enableObject



28
29
30
# File 'lib/rocking_chair.rb', line 28

def self.enable
  @_rocking_chair_enabled = true
end

.enable_debugObject



40
41
42
# File 'lib/rocking_chair.rb', line 40

def self.enable_debug
  RockingChair::CouchRestHttpAdapter.instance_variable_set("@_rocking_chair_debug", true)
end

.enabled?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/rocking_chair.rb', line 36

def self.enabled?
  @_rocking_chair_enabled
end