summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-18 12:57:54 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-18 12:57:54 +0000
commita0a9227b71820de6198446e7c5ff62b04e01b2a7 (patch)
tree399b80c7b2174b5abfede3a30878ef8f9423ed0f
parentdc9cd6a8c22ad04baa7498fd0cbc5d519ed73be0 (diff)
use Array#select instead of Array#indexes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/parsedate.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/parsedate.rb b/lib/parsedate.rb
index 89aeac0031d..7068da40f4a 100644
--- a/lib/parsedate.rb
+++ b/lib/parsedate.rb
@@ -7,7 +7,7 @@ module ParseDate
def parsedate(str, comp=false)
Date._parse(str, comp).
- indexes(:year, :mon, :mday, :hour, :min, :sec, :zone, :wday)
+ select(:year, :mon, :mday, :hour, :min, :sec, :zone, :wday)
end
module_function :parsedate