Class: Explorer::LogWatcher::LogDevice
- Inherits:
-
Object
- Object
- Explorer::LogWatcher::LogDevice
- Defined in:
- lib/explorer/log_watcher.rb
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(watcher, label = 'system') ⇒ LogDevice
constructor
A new instance of LogDevice.
- #write(data) ⇒ Object
Constructor Details
#initialize(watcher, label = 'system') ⇒ LogDevice
Returns a new instance of LogDevice.
40 41 42 43 |
# File 'lib/explorer/log_watcher.rb', line 40 def initialize(watcher, label='system') @watcher = watcher @label = label end |
Instance Method Details
#close ⇒ Object
45 46 |
# File 'lib/explorer/log_watcher.rb', line 45 def close end |
#write(data) ⇒ Object
48 49 50 |
# File 'lib/explorer/log_watcher.rb', line 48 def write(data) @watcher.log(@label, data) end |