lib/wmiirc/loader.rb
##
# Tee standard outputs into log.
#
Tee standard outputs into log.
Tee standard outputs into log .
def log_standard_outputs
        [STDOUT, STDERR].each do |output|
          (class << output; self; end).class_eval do
            alias __write__ write
            def write string
              Wmiirc::LOG << string
              __write__ string
            end
            alias << write
          end
        end
      end
def log_standard_outputs [ STDOUT , STDERR ] . each do | output | ( class << output ; self ; end ) . class_eval do alias __write__ write def write string Wmiirc :: LOG << string __write__ string end alias << write end end end
Tee standard outputs into log.
Tee standard outputs into log .