From 6154ce97a7915ac70326c007ee04a22fe5742e04 Mon Sep 17 00:00:00 2001 From: tadf Date: Mon, 5 May 2003 14:02:14 +0000 Subject: use values_at instead of select. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- sample/cal.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sample/cal.rb') diff --git a/sample/cal.rb b/sample/cal.rb index 0b2d9216ac..e8452349dd 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 -- cgit v1.2.3