Module: Kernel

Defined in:
lib/savon_helper.rb

Instance Method Summary collapse

Instance Method Details

#oldwarnObject



43
# File 'lib/savon_helper.rb', line 43

alias :oldwarn :warn

#warn(msg = "", fulltrace = false) ⇒ Object



45
46
47
48
49
50
# File 'lib/savon_helper.rb', line 45

def warn (msg = "", fulltrace = false)
  trace = caller(1)
  where = trace[0].sub(/:in.*/, '')
  $stderr.puts "#{where}: Warning: #{msg}"
  $stderr.puts trace.map { |t| "\tfrom #{t}" } if fulltrace
end