summaryrefslogtreecommitdiffstats
path: root/lib/date
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-05 07:25:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-05 07:25:35 +0000
commit0be98bcf9b949d4e69f63f9c16fc11ad6daa92a6 (patch)
tree46481c1b356e389cf483d2ca31f80a282ec00585 /lib/date
parent8c4897207e590089db4b0ec08fabc6eb71c253e4 (diff)
downloadruby-0be98bcf9b949d4e69f63f9c16fc11ad6daa92a6.tar.gz
ruby-0be98bcf9b949d4e69f63f9c16fc11ad6daa92a6.tar.xz
ruby-0be98bcf9b949d4e69f63f9c16fc11ad6daa92a6.zip
* lib/date/format.rb (Format::Bag#method_missing): get rid of
modifying orginal argument. [ruby-core:11090] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/date')
-rw-r--r--lib/date/format.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/date/format.rb b/lib/date/format.rb
index e0edb4572..723aa6713 100644
--- a/lib/date/format.rb
+++ b/lib/date/format.rb
@@ -118,7 +118,7 @@ class Date
end
def method_missing(t, *args, &block)
- t = t.to_s
+ t = "#{t}"
set = t.chomp!('=')
t = t.intern
if set