summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-04-21 07:52:05 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-04-21 07:52:05 +0000
commitcb1b00b4b4e42600b0a6f30a412a7a70da878587 (patch)
treef46b15cedd3984d8d2f7df8f1787cd68a9ecdc35
parent4f0aeb3cf739b246bfae2ac8a789e1f57c582abc (diff)
2000-04-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/date2.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/date2.rb b/lib/date2.rb
index 706fec744e5..cc755773457 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)