diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-13 16:15:02 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-13 16:15:02 +0000 |
| commit | 0c49bac0a0dc7e641970bff3e29162ec0b4ea610 (patch) | |
| tree | bc5355383d7b9006270e2fedc724e800cf34ed66 /lib | |
| parent | 6eb4b9668c67d246a58ccb3d4ace3ac784ec7ddc (diff) | |
| download | ruby-0c49bac0a0dc7e641970bff3e29162ec0b4ea610.tar.gz ruby-0c49bac0a0dc7e641970bff3e29162ec0b4ea610.tar.xz ruby-0c49bac0a0dc7e641970bff3e29162ec0b4ea610.zip | |
* lib/date/format.rb (Date::Format::Bag::method_missing): add
prefix to avoid making t class-local instance variable.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/date/format.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/date/format.rb b/lib/date/format.rb index 6cada0f69..152ca2ff6 100644 --- a/lib/date/format.rb +++ b/lib/date/format.rb @@ -99,7 +99,7 @@ class Date def method_missing(t, *args, &block) t = t.to_s set = t.chomp!('=') - t = '@' + t + t = '@v' + t if set instance_variable_set(t, *args) else |
