Class: MaybeYouMeant::StdErrLogger

Inherits:
Object
  • Object
show all
Defined in:
lib/maybeyoumeant/std_err_logger.rb

Overview

Logs to STDERR.

Instance Method Summary collapse

Instance Method Details

#log(msg = nil, &block) ⇒ Object



3
4
5
6
# File 'lib/maybeyoumeant/std_err_logger.rb', line 3

def log(msg = nil, &block)
  msg ||= yield if block_given?
  STDERR.puts(msg)
end