1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

tkutil.c: inherit Data

* ext/tk/tkutil/tkutil.c: use Data as super class, not to inherit
  useless methods.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-11-03 05:36:29 +00:00
parent 2320264ef6
commit 30f69beeba

View file

@ -1754,10 +1754,10 @@ Init_tkutil(void)
ID_call = rb_intern("call");
/* --------------------- */
cCB_SUBST = rb_define_class_under(mTK, "CallbackSubst", rb_cObject);
cCB_SUBST = rb_define_class_under(mTK, "CallbackSubst", rb_cData);
rb_define_singleton_method(cCB_SUBST, "inspect", cbsubst_inspect, 0);
cSUBST_INFO = rb_define_class_under(cCB_SUBST, "Info", rb_cObject);
cSUBST_INFO = rb_define_class_under(cCB_SUBST, "Info", rb_cData);
rb_define_singleton_method(cSUBST_INFO, "inspect", substinfo_inspect, 0);
ID_SUBST_INFO = rb_intern("SUBST_INFO");