module Google::Maps::Logger
Attributes
logger[RW]
Public Class Methods
extended(base)
click to toggle source
# File lib/google_maps/logger.rb, line 14 def self.extended(base) base.log_file = RUBY_PLATFORM.index(/mswin(?!ce)|mingw|cygwin|bccwin/) ? 'nul' : '/dev/null' end
Public Instance Methods
log_file=(file)
click to toggle source
# File lib/google_maps/logger.rb, line 10 def log_file=(file) self.logger = ::Logger.new(file) end