diff --git a/ChangeLog b/ChangeLog index 1371874278..a51132181b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -581,6 +581,11 @@ Mon Jan 29 23:52:32 2007 Yukihiro Matsumoto * tool/compile.rb: replace YARVCore by VM class. +Mon Jan 29 17:52:44 2007 Yukihiro Matsumoto + + * lib/date/format.rb (Date::Format::Bag::method_missing): add + prefix to avoid making t class-local instance variable. + Mon Jan 29 21:32:37 2007 Masaki Suketa * ext/win32ole/win32ole.c: add WIN32OLE.locale=, WIN32OLE.locale, diff --git a/lib/date/format.rb b/lib/date/format.rb index 6cada0f69b..152ca2ff6b 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