aboutsummaryrefslogtreecommitdiffstats
path: root/ext/stringio
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-24 06:54:17 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-24 06:54:17 +0000
commitdb41a18845d1578797a2b5baab6d9cbb76e29e42 (patch)
tree0f63b981eb4671872bcf881a9c5d2d6a9e4c9de7 /ext/stringio
parentb84f7fda07a8e7bfad80a9faae69f071b736f144 (diff)
downloadruby-db41a18845d1578797a2b5baab6d9cbb76e29e42.tar.gz
rename generic io modules
* ext/io/console/console.c, ext/stringio/stringio.c: rename internally used modules as generic_readable and generic_writable. [Fix GH-315] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/stringio')
-rw-r--r--ext/stringio/stringio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c
index 97a79839a5..bdc46af21d 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);