Class: RactorRailsShim::NoOpLogDev

Inherits:
Object
  • Object
show all
Defined in:
lib/ractor_rails_shim/patches/callables.rb

Overview

No-op log device sink: a frozen, shareable stand-in for an IO, swapped in for $stdout/$stderr in the app's logger before make_shareable so the real IOs aren't frozen. Responds to the write methods a Logger::LogDevice might call.

Instance Method Summary collapse

Instance Method Details

#<<(*_) ⇒ Object



144
# File 'lib/ractor_rails_shim/patches/callables.rb', line 144

def <<(*_); self; end

#binmodeObject



150
# File 'lib/ractor_rails_shim/patches/callables.rb', line 150

def binmode; self; end

#closeObject



148
# File 'lib/ractor_rails_shim/patches/callables.rb', line 148

def close; self; end

#closed?Boolean

Returns:

  • (Boolean)


152
# File 'lib/ractor_rails_shim/patches/callables.rb', line 152

def closed?; false; end

#flushObject



147
# File 'lib/ractor_rails_shim/patches/callables.rb', line 147

def flush; self; end


146
# File 'lib/ractor_rails_shim/patches/callables.rb', line 146

def print(*_); self; end

#puts(*_) ⇒ Object



145
# File 'lib/ractor_rails_shim/patches/callables.rb', line 145

def puts(*_); self; end

#sync=(*_) ⇒ Object



149
# File 'lib/ractor_rails_shim/patches/callables.rb', line 149

def sync=(*_); self; end

#tty?Boolean

Returns:

  • (Boolean)


151
# File 'lib/ractor_rails_shim/patches/callables.rb', line 151

def tty?; false; end

#write(*_) ⇒ Object



143
# File 'lib/ractor_rails_shim/patches/callables.rb', line 143

def write(*_); self; end