From 776f222f590998bc0da95990b9d113b63103c6a6 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 13 Mar 2000 07:18:45 +0000 Subject: 2000-03-13 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/date2.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/date2.rb b/lib/date2.rb index 38d477b78..ef8bf832c 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 -- cgit