summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)