Module: Google::Maps::Logger
- Included in:
- Google::Maps
- Defined in:
- lib/google_maps/logger.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#logger ⇒ Object
Returns the value of attribute logger.
8 9 10 |
# File 'lib/google_maps/logger.rb', line 8 def logger @logger end |
Class Method Details
.extended(base) ⇒ Object
14 15 16 |
# 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 |
Instance Method Details
#log_file=(file) ⇒ Object
10 11 12 |
# File 'lib/google_maps/logger.rb', line 10 def log_file=(file) self.logger = ::Logger.new(file) end |