summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/io/console/console.c2
-rw-r--r--ext/stringio/stringio.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/io/console/console.c b/ext/io/console/console.c
index e1b515abdd4..756daca9e28 100644
--- a/ext/io/console/console.c
+++ b/ext/io/console/console.c
@@ -803,7 +803,7 @@ InitVM_console(void)
rb_define_method(rb_cIO, "ioflush", console_ioflush, 0);
rb_define_singleton_method(rb_cIO, "console", console_dev, 0);
{
- VALUE mReadable = rb_define_module_under(rb_cIO, "readable");
+ VALUE mReadable = rb_define_module_under(rb_cIO, "generic_readable");
rb_define_method(mReadable, "getch", io_getch, -1);
}
}
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c
index 97a79839a59..bdc46af21d1 100644
--- a/ext/stringio/stringio.c
+++ b/ext/stringio/stringio.c
@@ -1536,7 +1536,7 @@ Init_stringio()
rb_define_method(StringIO, "set_encoding", strio_set_encoding, -1);
{
- VALUE mReadable = rb_define_module_under(rb_cIO, "readable");
+ VALUE mReadable = rb_define_module_under(rb_cIO, "generic_readable");
rb_define_method(mReadable, "readchar", strio_readchar, 0);
rb_define_method(mReadable, "readbyte", strio_readbyte, 0);
rb_define_method(mReadable, "readline", strio_readline, -1);
@@ -1546,7 +1546,7 @@ Init_stringio()
rb_include_module(StringIO, mReadable);
}
{
- VALUE mWritable = rb_define_module_under(rb_cIO, "writable");
+ VALUE mWritable = rb_define_module_under(rb_cIO, "generic_writable");
rb_define_method(mWritable, "<<", strio_addstr, 1);
rb_define_method(mWritable, "print", strio_print, -1);
rb_define_method(mWritable, "printf", strio_printf, -1);