diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-19 02:26:23 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-19 02:26:23 +0000 |
commit | 1c453c06081222e9b75dac428b08ffd26f1ca2a7 (patch) | |
tree | ede068b5ee35e028db6285a313fe36957fd2aba2 | |
parent | e6a0f42c9462e8f7d1a70b94c2428657d5cb9874 (diff) | |
download | ruby-1c453c06081222e9b75dac428b08ffd26f1ca2a7.tar.gz |
* lib/xmlrpc/datetime.rb (XMLRPC::DateTime#==): should use Array()
instead of to_a.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | lib/xmlrpc/datetime.rb | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -5,6 +5,9 @@ Fri Nov 19 11:10:16 2004 WATANABE Hirofumi <eban@ruby-lang.org> * test/testunit/collector/test_dir.rb: ditto. + * lib/xmlrpc/datetime.rb (XMLRPC::DateTime#==): should use Array() + instead of to_a. + Fri Nov 19 10:32:36 2004 Shugo Maeda <shugo@ruby-lang.org> * ext/readline/readline.c (readline_s_set_completion_append_character): diff --git a/lib/xmlrpc/datetime.rb b/lib/xmlrpc/datetime.rb index 8ae6c7a56e..298263fe8a 100644 --- a/lib/xmlrpc/datetime.rb +++ b/lib/xmlrpc/datetime.rb @@ -127,7 +127,7 @@ class DateTime end def ==(o) - self.to_a == o.to_a + Array(self) == Array(o) end end |