diff options
Diffstat (limited to 'lib/date.rb')
-rw-r--r-- | lib/date.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/date.rb b/lib/date.rb index f9ba3ba1e6..6dac752654 100644 --- a/lib/date.rb +++ b/lib/date.rb @@ -532,9 +532,9 @@ class Date module_eval <<-"end;" def self.#{old}(*args, &block) if $VERBOSE - $deferr.puts("\#{caller.shift.sub(/:in .*/, '')}: " \ - "warning: \#{self}::#{old} is deprecated; " \ - "use \#{self}::#{new}") + warn("\#{caller.shift.sub(/:in .*/, '')}: " \ + "warning: \#{self}::#{old} is deprecated; " \ + "use \#{self}::#{new}") end #{new}(*args, &block) end @@ -549,9 +549,9 @@ class Date module_eval <<-"end;" def #{old}(*args, &block) if $VERBOSE - $deferr.puts("\#{caller.shift.sub(/:in .*/, '')}: " \ - "warning: \#{self.class}\##{old} is deprecated; " \ - "use \#{self.class}\##{new}") + warn("\#{caller.shift.sub(/:in .*/, '')}: " \ + "warning: \#{self.class}\##{old} is deprecated; " \ + "use \#{self.class}\##{new}") end #{new}(*args, &block) end |