mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
use values_at instead of select.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b65e3629da
commit
6154ce97a7
3 changed files with 8 additions and 2 deletions
|
@ -59,7 +59,7 @@ def getPosition(z)
|
|||
end
|
||||
|
||||
def parsedate(s)
|
||||
ParseDate::parsedate(s).select(0, 1, 2)
|
||||
ParseDate::parsedate(s).values_at(0, 1, 2)
|
||||
end
|
||||
|
||||
def name_of_week(date)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue