mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Do not define the method only for RDoc
`Data.members` fails an assertion.
This commit is contained in:
parent
70538beaa9
commit
c767618d4c
1 changed files with 2 additions and 0 deletions
2
struct.c
2
struct.c
|
@ -2167,7 +2167,9 @@ InitVM_Struct(void)
|
|||
rb_undef_alloc_func(rb_cData);
|
||||
rb_define_singleton_method(rb_cData, "define", rb_data_s_def, -1);
|
||||
|
||||
#if 0 /* for RDoc */
|
||||
rb_define_singleton_method(rb_cData, "members", rb_data_s_members_m, 0);
|
||||
#endif
|
||||
|
||||
rb_define_method(rb_cData, "initialize", rb_data_initialize_m, -1);
|
||||
rb_define_method(rb_cData, "initialize_copy", rb_struct_init_copy, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue