summaryrefslogtreecommitdiff
path: root/lib/date2.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-03-13 07:18:45 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-03-13 07:18:45 +0000
commit31c55301e4c3c84803186d28d2764363b457532f (patch)
tree5f3558168cba03413c22fb5a9b3a7d64e0519df2 /lib/date2.rb
parent976692f8ae8377af944f09177c8e79cb94809fe9 (diff)
2000-03-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/date2.rb')
-rw-r--r--lib/date2.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/date2.rb b/lib/date2.rb
index 38d477b..ef8bf83 100644
--- a/lib/date2.rb
+++ b/lib/date2.rb
@@ -195,10 +195,10 @@ class Date
def once(*ids)
for id in ids
module_eval <<-"end;"
- alias_method :__#{id}__, #{id}
+ alias_method :__#{id.to_i}__, #{id}
def #{id.id2name}(*args, &block)
- def self.#{id.id2name}(*args, &block); @__#{id}__ end
- @__#{id}__ = __#{id}__(*args, &block)
+ def self.#{id.id2name}(*args, &block); @__#{id.to_i}__ end
+ @__#{id.to_i}__ = __#{id.to_i}__(*args, &block)
end
end;
end