Module: SimpleFeed::Providers::Redis

Defined in:
lib/simplefeed/providers/redis.rb,
lib/simplefeed/providers/redis/stats.rb,
lib/simplefeed/providers/redis/driver.rb,
lib/simplefeed/providers/redis/provider.rb

Defined Under Namespace

Modules: Driver Classes: Provider, Stats

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.debugObject

Returns the value of attribute debug


27
28
29
# File 'lib/simplefeed/providers/redis/driver.rb', line 27

def debug
  @debug
end

Class Method Details

.debug?Boolean

Returns:

  • (Boolean)

14
15
16
# File 'lib/simplefeed/providers/redis/driver.rb', line 14

def self.debug?
  self.debug
end

.with_debug(&block) ⇒ Object


18
19
20
21
22
23
24
# File 'lib/simplefeed/providers/redis/driver.rb', line 18

def self.with_debug(&block)
  previous_value                     = SimpleFeed::Providers::Redis.debug
  SimpleFeed::Providers::Redis.debug = true
  result                             = yield if block_given?
  SimpleFeed::Providers::Redis.debug = previous_value
  result
end