Class: Perchance::Util

Inherits:
Object show all
Defined in:
lib/perchance/util.rb

Class Method Summary collapse

Class Method Details

.loggerObject



4
5
6
# File 'lib/perchance/util.rb', line 4

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

.logger=(out) ⇒ Object



8
9
10
# File 'lib/perchance/util.rb', line 8

def logger=(out)
  @@logger = Logger.new(out)
end