V
Victor Kryukov
Hello,
in Ruby 1.9 (ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-
mingw32])
the following code
require 'date'
Date.parse(nil)
raises TypeError: can't dup NilClass. I think it should be
"ArgumentError: invalid date", same as what Date.parse reports for
strings with invalid date formats. Should I file a bug report?
in Ruby 1.9 (ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-
mingw32])
the following code
require 'date'
Date.parse(nil)
raises TypeError: can't dup NilClass. I think it should be
"ArgumentError: invalid date", same as what Date.parse reports for
strings with invalid date formats. Should I file a bug report?