H
Han Holl
Hello,
The following snippet:
#!/usr/bin/ruby -w
require 'date'
class MyDate < Date
def self.today
super
end
end
puts MyDate.today.class
## end
prints out 'MyDate' with ruby 1.8.4 and 1.8.5, but 'Date' with 1.8.6
Is this a bug in 1.8.6, or the correction of a long lived bug in
versions before ?
Cheers,
Han Holl
The following snippet:
#!/usr/bin/ruby -w
require 'date'
class MyDate < Date
def self.today
super
end
end
puts MyDate.today.class
## end
prints out 'MyDate' with ruby 1.8.4 and 1.8.5, but 'Date' with 1.8.6
Is this a bug in 1.8.6, or the correction of a long lived bug in
versions before ?
Cheers,
Han Holl