Class: MacLogger::Logger
- Inherits:
-
Object
- Object
- MacLogger::Logger
- Defined in:
- lib/mac_logger/logger.rb
Instance Method Summary collapse
- #debug(message) ⇒ Object
-
#initialize(options = {}) ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize(options = {}) ⇒ Logger
Returns a new instance of Logger.
6 7 8 9 10 11 12 |
# File 'lib/mac_logger/logger.rb', line 6 def initialize( = {}) opts = .dup @options = {:title => "Ruby", :subtitle => "Program"}.merge(opts) @title = @options[:title] @subtitle = @options[:subtitle] end |
Instance Method Details
#debug(message) ⇒ Object
14 15 16 |
# File 'lib/mac_logger/logger.rb', line 14 def debug() log("#{DateTime.now}|DEBUG|#{}") end |