зеркало из https://github.com/github/ruby.git
* ext/stringio/stringio.c: includes Enumerable as well as IO.
[ruby-talk:77058] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
34ca2ab058
Коммит
7a1482c3ee
|
@ -1,3 +1,8 @@
|
||||||
|
Sat Jul 26 14:14:12 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||||
|
|
||||||
|
* ext/stringio/stringio.c: includes Enumerable as well as IO.
|
||||||
|
[ruby-talk:77058]
|
||||||
|
|
||||||
Sat Jul 26 07:00:53 2003 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
Sat Jul 26 07:00:53 2003 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
||||||
|
|
||||||
* lib/erb.rb: fix % line.
|
* lib/erb.rb: fix % line.
|
||||||
|
|
|
@ -896,6 +896,8 @@ void
|
||||||
Init_stringio()
|
Init_stringio()
|
||||||
{
|
{
|
||||||
VALUE StringIO = rb_define_class("StringIO", rb_cData);
|
VALUE StringIO = rb_define_class("StringIO", rb_cData);
|
||||||
|
|
||||||
|
rb_include_module(StringIO, rb_mEnumerable);
|
||||||
rb_define_alloc_func(StringIO, strio_s_allocate);
|
rb_define_alloc_func(StringIO, strio_s_allocate);
|
||||||
rb_define_singleton_method(StringIO, "open", strio_s_open, -1);
|
rb_define_singleton_method(StringIO, "open", strio_s_open, -1);
|
||||||
rb_define_method(StringIO, "initialize", strio_initialize, -1);
|
rb_define_method(StringIO, "initialize", strio_initialize, -1);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче