1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

use Array#select instead of Array#indexes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tadf 2002-05-18 12:57:54 +00:00
parent dc9cd6a8c2
commit a0a9227b71

View file

@ -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