Class: Absurdity::Config

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/absurdity/config.rb

Instance Method Summary collapse

Instance Method Details

#loggerObject



16
17
18
# File 'lib/absurdity/config.rb', line 16

def logger
  @logger ||= ::Logger.new(STDOUT)
end

#logger=(logger) ⇒ Object



20
21
22
# File 'lib/absurdity/config.rb', line 20

def logger=(logger)
  @logger = logger
end

#redisObject



8
9
10
# File 'lib/absurdity/config.rb', line 8

def redis
  @redis
end

#redis=(redis) ⇒ Object



12
13
14
# File 'lib/absurdity/config.rb', line 12

def redis=(redis)
  @redis = redis
end