Skip to content

Commit c767618

Browse files
committed
Do not define the method only for RDoc
`Data.members` fails an assertion.
1 parent 70538be commit c767618

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

struct.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2167,7 +2167,9 @@ InitVM_Struct(void)
21672167
rb_undef_alloc_func(rb_cData);
21682168
rb_define_singleton_method(rb_cData, "define", rb_data_s_def, -1);
21692169

2170+
#if 0 /* for RDoc */
21702171
rb_define_singleton_method(rb_cData, "members", rb_data_s_members_m, 0);
2172+
#endif
21712173

21722174
rb_define_method(rb_cData, "initialize", rb_data_initialize_m, -1);
21732175
rb_define_method(rb_cData, "initialize_copy", rb_struct_init_copy, 1);

0 commit comments

Comments
 (0)