summaryrefslogtreecommitdiffstats
path: root/lib/date.rb
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-10 11:27:56 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-10 11:27:56 +0000
commit2f4ad10d82a0bcb9f0648aef35d8713f92348e5b (patch)
tree12f31e2eef2cf736a883856506f0076f7017083f /lib/date.rb
parentd1c4b38c09342d6af21d395563f4500e33fa1cbc (diff)
downloadruby-2f4ad10d82a0bcb9f0648aef35d8713f92348e5b.tar.gz
ruby-2f4ad10d82a0bcb9f0648aef35d8713f92348e5b.tar.xz
ruby-2f4ad10d82a0bcb9f0648aef35d8713f92348e5b.zip
updated based on date2 3.9.1.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/date.rb')
-rw-r--r--lib/date.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/date.rb b/lib/date.rb
index 1710af249..a34b64eda 100644
--- a/lib/date.rb
+++ b/lib/date.rb
@@ -6,7 +6,7 @@
# Documentation: William Webber <william@williamwebber.com>
#
#--
-# $Id: date.rb,v 2.21 2006-08-19 22:38:12+09 tadf Exp $
+# $Id: date.rb,v 2.23 2006-09-09 22:44:21+09 tadf Exp $
#++
#
# == Overview
@@ -1149,7 +1149,7 @@ class Date
# date at each step.
def step(limit, step=1) # :yield: date
da = self
- op = [:-,:<=,:>=][step<=>0]
+ op = %w(- <= >=)[step <=> 0]
while da.__send__(op, limit)
yield da
da += step