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



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

def <<(*_); self; end

#binmodeObject



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

def binmode; self; end

#closeObject



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

def close; self; end

#closed?Boolean

Returns:

  • (Boolean)


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

def closed?; false; end

#flushObject



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

def flush; self; end


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

def print(*_); self; end

#puts(*_) ⇒ Object



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

def puts(*_); self; end

#sync=(*_) ⇒ Object



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

def sync=(*_); self; end

#tty?Boolean

Returns:

  • (Boolean)


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

def tty?; false; end

#write(*_) ⇒ Object



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

def write(*_); self; end