class StaticFM::Logger
Public Class Methods
info(*args)
click to toggle source
# File lib/static_fm.rb, line 12 def info(*args) return nil if silent? logger.info *args end
logger()
click to toggle source
# File lib/static_fm.rb, line 17 def logger @logger ||= ::Logger.new $stdout, 'w+' end
silence!()
click to toggle source
# File lib/static_fm.rb, line 21 def silence! @silent = true end
silent?()
click to toggle source
# File lib/static_fm.rb, line 25 def silent? !!@silent end