Class: ActiveSupport::Ractors::Logger::DeviceProxy
Do not use. This class is for internal use only.
| Relationships & Source Files | |
| Inherits: | Object |
| Defined in: | activesupport/lib/active_support/ractors/logger/device_proxy.rb |
Class Method Summary
- .new(*args, **logdev_options) ⇒ DeviceProxy constructor
Instance Method Summary
Constructor Details
.new(*args, **logdev_options) ⇒ DeviceProxy
Instance Method Details
#close
[ GitHub ]# File 'activesupport/lib/active_support/ractors/logger/device_proxy.rb', line 24
def close return true if @closed @writer.shutdown @closed = true unless frozen? true end
#flush
[ GitHub ]# File 'activesupport/lib/active_support/ractors/logger/device_proxy.rb', line 19
def flush @writer.flush unless @closed true end
#reopen(log = nil, **options)
[ GitHub ]# File 'activesupport/lib/active_support/ractors/logger/device_proxy.rb', line 32
def reopen(log = nil, **) @writer.reopen(log, ) unless @closed self end
#write(message)
[ GitHub ]# File 'activesupport/lib/active_support/ractors/logger/device_proxy.rb', line 12
def write() return if @closed @writer.async() .bytesize end