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:
parent
dc9cd6a8c2
commit
a0a9227b71
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue