Module: Kernel

Defined in:
lib/rjr/util/logger.rb

Overview

Serialized puts, uses logger lock to serialize puts output. Definiting it in Kernel as ‘puts’ is defined there

Though this could go in core_ext, since it’s pretty specific to RJR logger, adding here

Instance Method Summary collapse

Instance Method Details

#sputs(*args) ⇒ Object



123
124
125
126
127
# File 'lib/rjr/util/logger.rb', line 123

def sputs(*args)
  ::RJR::Logger.safe_exec {
    puts *args
  }
end