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

* sample/test.rb: substitute 'select' with 'values_at'.

* lib/date.rb: ditto.
* lib/parsedate.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2003-05-05 10:05:11 +00:00
parent 79f7c2b1b6
commit b65e3629da
4 changed files with 12 additions and 4 deletions

View file

@ -7,7 +7,7 @@ module ParseDate
def parsedate(str, comp=false)
Date._parse(str, comp).
select(:year, :mon, :mday, :hour, :min, :sec, :zone, :wday)
values_at(:year, :mon, :mday, :hour, :min, :sec, :zone, :wday)
end
module_function :parsedate