mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/win32ole/win32ole_variable.c(folevariable_inspect): refactoring.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
66973fc16b
commit
812c7a9efa
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
Mon Aug 11 22:19:15 2014 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||
|
||||
* ext/win32ole/win32ole_variable.c(folevariable_inspect): refactoring.
|
||||
|
||||
Mon Aug 11 20:47:27 2014 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||
|
||||
* ext/win32ole/win32ole.c: seperate WIN32OLE_VARIABLE src from
|
||||
|
|
|
@ -345,9 +345,9 @@ folevariable_varkind(VALUE self)
|
|||
static VALUE
|
||||
folevariable_inspect(VALUE self)
|
||||
{
|
||||
VALUE detail = rb_funcall(self, rb_intern("to_s"), 0);
|
||||
rb_str_cat2(detail, "=");
|
||||
rb_str_concat(detail, rb_funcall(rb_funcall(self, rb_intern("value"), 0), rb_intern("inspect"), 0));
|
||||
VALUE v = rb_funcall(folevariable_value(self), rb_intern("inspect"), 0);
|
||||
VALUE n = folevariable_name(self);
|
||||
VALUE detail = rb_sprintf("%s=%s", StringValueCStr(n), StringValueCStr(v));
|
||||
return make_inspect("WIN32OLE_VARIABLE", detail);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue