Class: Console::Compatible::Logger::LogDevice
- Inherits:
-
Object
- Object
- Console::Compatible::Logger::LogDevice
- Defined in:
- lib/console/compatible/logger.rb
Instance Method Summary collapse
- #call(*arguments, **options) ⇒ Object
- #close ⇒ Object
-
#initialize(subject, output) ⇒ LogDevice
constructor
A new instance of LogDevice.
- #reopen ⇒ Object
- #write(message) ⇒ Object
Constructor Details
#initialize(subject, output) ⇒ LogDevice
Returns a new instance of LogDevice.
13 14 15 16 |
# File 'lib/console/compatible/logger.rb', line 13 def initialize(subject, output) @subject = subject @output = output end |
Instance Method Details
#call(*arguments, **options) ⇒ Object
[View source]
22 23 24 |
# File 'lib/console/compatible/logger.rb', line 22 def call(*arguments, **) @output.call(*arguments, **) end |
#close ⇒ Object
[View source]
29 30 |
# File 'lib/console/compatible/logger.rb', line 29 def close end |
#reopen ⇒ Object
[View source]
26 27 |
# File 'lib/console/compatible/logger.rb', line 26 def reopen end |
#write(message) ⇒ Object
[View source]
18 19 20 |
# File 'lib/console/compatible/logger.rb', line 18 def write() @output.call(@subject, ) end |