Class: Explorer::LogWatcher::LogDevice

Inherits:
Object
  • Object
show all
Defined in:
lib/explorer/log_watcher.rb

Instance Method Summary collapse

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

#closeObject



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