Class: FileMonitor::Hooks::FileLog
- Inherits:
-
Object
- Object
- FileMonitor::Hooks::FileLog
- Defined in:
- lib/file_monitor/hooks/file_log.rb
Class Method Summary collapse
Class Method Details
.io ⇒ Object
8 9 10 11 |
# File 'lib/file_monitor/hooks/file_log.rb', line 8 def self.io require "logger" @io = ::Logger.new(log_path) end |
.log_path ⇒ Object
17 |
# File 'lib/file_monitor/hooks/file_log.rb', line 17 def self.log_path; @log_path; end |
.log_path=(path) ⇒ Object
13 14 15 |
# File 'lib/file_monitor/hooks/file_log.rb', line 13 def self.log_path=(path) @log_path = path end |
.run(*args) ⇒ Object
4 5 6 |
# File 'lib/file_monitor/hooks/file_log.rb', line 4 def self.run *args io << args.inspect end |