diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-04-21 07:52:05 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-04-21 07:52:05 +0000 |
| commit | 5b89663cfa07d6edff2d33de6a776ad855a33749 (patch) | |
| tree | f46b15cedd3984d8d2f7df8f1787cd68a9ecdc35 | |
| parent | ca58afb9ca3622d9f2b6381a8d0009c1657ae12d (diff) | |
| download | ruby-5b89663cfa07d6edff2d33de6a776ad855a33749.tar.gz ruby-5b89663cfa07d6edff2d33de6a776ad855a33749.tar.xz ruby-5b89663cfa07d6edff2d33de6a776ad855a33749.zip | |
2000-04-21
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | lib/date2.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/date2.rb b/lib/date2.rb index 706fec744..cc7557734 100644 --- a/lib/date2.rb +++ b/lib/date2.rb @@ -199,7 +199,7 @@ class Date def once(*ids) for id in ids module_eval <<-"end;" - alias_method :__#{id.to_i}__, #{id} + alias_method :__#{id.to_i}__, #{id.inspect} def #{id.id2name}(*args, &block) def self.#{id.id2name}(*args, &block); @__#{id.to_i}__ end @__#{id.to_i}__ = __#{id.to_i}__(*args, &block) |
