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.
29 30 31 32 |
# File 'lib/console/compatible/logger.rb', line 29 def initialize(subject, output) @subject = subject @output = output end |
Instance Method Details
#call(*arguments, **options) ⇒ Object
38 39 40 |
# File 'lib/console/compatible/logger.rb', line 38 def call(*arguments, **) @output.call(*arguments, **) end |
#close ⇒ Object
45 46 |
# File 'lib/console/compatible/logger.rb', line 45 def close end |
#reopen ⇒ Object
42 43 |
# File 'lib/console/compatible/logger.rb', line 42 def reopen end |
#write(message) ⇒ Object
34 35 36 |
# File 'lib/console/compatible/logger.rb', line 34 def write() @output.call(@subject, ) end |