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:
parent
2320264ef6
commit
30f69beeba
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue