зеркало из https://github.com/github/ruby.git
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:
Родитель
b65e3629da
Коммит
6154ce97a7
|
@ -1,3 +1,9 @@
|
||||||
|
Mon May 5 22:57:07 2003 Tadayoshi Funaba <tadf@dotrb.org>
|
||||||
|
|
||||||
|
* sample/cal.rb: use values_at instead of select.
|
||||||
|
|
||||||
|
* sample/biorhythm.rb: ditto.
|
||||||
|
|
||||||
Mon May 5 18:59:45 2003 WATANABE Hirofumi <eban@ruby-lang.org>
|
Mon May 5 18:59:45 2003 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
* sample/test.rb: substitute 'select' with 'values_at'.
|
* sample/test.rb: substitute 'select' with 'values_at'.
|
||||||
|
|
|
@ -59,7 +59,7 @@ def getPosition(z)
|
||||||
end
|
end
|
||||||
|
|
||||||
def parsedate(s)
|
def parsedate(s)
|
||||||
ParseDate::parsedate(s).select(0, 1, 2)
|
ParseDate::parsedate(s).values_at(0, 1, 2)
|
||||||
end
|
end
|
||||||
|
|
||||||
def name_of_week(date)
|
def name_of_week(date)
|
||||||
|
|
|
@ -84,7 +84,7 @@ end
|
||||||
|
|
||||||
usage unless getopts('jmty', "c:#{$cc}")
|
usage unless getopts('jmty', "c:#{$cc}")
|
||||||
|
|
||||||
y, m = ARGV.select(1, 0).compact.collect{|x| x.to_i}
|
y, m = ARGV.values_at(1, 0).compact.collect{|x| x.to_i}
|
||||||
$OPT_y ||= (y and not m)
|
$OPT_y ||= (y and not m)
|
||||||
|
|
||||||
to = Date.today
|
to = Date.today
|
||||||
|
|
Загрузка…
Ссылка в новой задаче