diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-03-13 07:18:45 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-03-13 07:18:45 +0000 |
commit | 31c55301e4c3c84803186d28d2764363b457532f (patch) | |
tree | 5f3558168cba03413c22fb5a9b3a7d64e0519df2 /lib | |
parent | 976692f8ae8377af944f09177c8e79cb94809fe9 (diff) | |
download | ruby-31c55301e4c3c84803186d28d2764363b457532f.tar.gz |
2000-03-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/date2.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/date2.rb b/lib/date2.rb index 38d477b78d..ef8bf832c1 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 |