Class: NotifyMe::Log::File
Constant Summary
Constants inherited from Logger
Instance Method Summary collapse
Methods inherited from Logger
#add_log_history, #can_log?, #clean_log_history!, #fact, #initialize
Constructor Details
This class inherits a constructor from NotifyMe::Log::Logger
Instance Method Details
#<<(task) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/notifyme/log/file.rb', line 4 def <<(task) file_path = @parameters.is_a?(String) ? @parameters : @parameters[:path] ::File.open(file_path, 'a') do |f| f.write generate(task) f.write "\n" end end |