diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-03 05:17:39 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-03 05:17:39 +0000 |
commit | ce91cf064d68009679b4277da6b72d9c5ab76218 (patch) | |
tree | 4ab0fd67ef12ea789ccb12df06654057f5ee6f87 /lib/date.rb | |
parent | a6199fedfa8c2e87d9e9b456953611115e5a96fb (diff) | |
download | ruby-ce91cf064d68009679b4277da6b72d9c5ab76218.tar.gz ruby-ce91cf064d68009679b4277da6b72d9c5ab76218.tar.xz ruby-ce91cf064d68009679b4277da6b72d9c5ab76218.zip |
* parse.y (arg): parse 'lhs = a rescue b' as 'lhs=(a rescue b)'.
* io.c (rb_io_fread): should not clearerr() if there's no filled
buffer (i.e. rb_io_fread() returning zero).
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/date.rb')
-rw-r--r-- | lib/date.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/date.rb b/lib/date.rb index 51cc95ee1..e04f0b01b 100644 --- a/lib/date.rb +++ b/lib/date.rb @@ -365,7 +365,7 @@ class Date when Numeric; return @ajd <=> other when Date; return @ajd <=> other.ajd end - raise TypeError, 'expected numeric or date' + nil end def === (other) @@ -373,7 +373,7 @@ class Date when Numeric; return jd == other when Date; return jd == other.jd end - raise TypeError, 'expected numeric or date' + false end def >> (n) |