mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/date/format.rb (Date::Format::Bag::method_missing): add
prefix to avoid making t class-local instance variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
76a27adfda
commit
1e41cf4885
2 changed files with 6 additions and 1 deletions
|
@ -581,6 +581,11 @@ Mon Jan 29 23:52:32 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* tool/compile.rb: replace YARVCore by VM class.
|
* tool/compile.rb: replace YARVCore by VM class.
|
||||||
|
|
||||||
|
Mon Jan 29 17:52:44 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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 <masaki.suketa@nifty.ne.jp>
|
Mon Jan 29 21:32:37 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||||
|
|
||||||
* ext/win32ole/win32ole.c: add WIN32OLE.locale=, WIN32OLE.locale,
|
* ext/win32ole/win32ole.c: add WIN32OLE.locale=, WIN32OLE.locale,
|
||||||
|
|
|
@ -99,7 +99,7 @@ class Date
|
||||||
def method_missing(t, *args, &block)
|
def method_missing(t, *args, &block)
|
||||||
t = t.to_s
|
t = t.to_s
|
||||||
set = t.chomp!('=')
|
set = t.chomp!('=')
|
||||||
t = '@' + t
|
t = '@v' + t
|
||||||
if set
|
if set
|
||||||
instance_variable_set(t, *args)
|
instance_variable_set(t, *args)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue