summaryrefslogtreecommitdiffstats
path: root/sample/cal.rb
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-05 14:02:14 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-05 14:02:14 +0000
commit28fc7d479b5a06a89f338b1fecb087ef4068b370 (patch)
tree8e1943ac59519bd7f142e72dfbfc88880ed69656 /sample/cal.rb
parente86d42af042357dce2c41646841750d7e7954552 (diff)
downloadruby-28fc7d479b5a06a89f338b1fecb087ef4068b370.tar.gz
ruby-28fc7d479b5a06a89f338b1fecb087ef4068b370.tar.xz
ruby-28fc7d479b5a06a89f338b1fecb087ef4068b370.zip
use values_at instead of select.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/cal.rb')
-rw-r--r--sample/cal.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/cal.rb b/sample/cal.rb
index 0b2d9216a..e8452349d 100644
--- a/sample/cal.rb
+++ b/sample/cal.rb
@@ -84,7 +84,7 @@ end
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)
to = Date.today