diff options
Diffstat (limited to 'ext/stringio/stringio.c')
-rw-r--r-- | ext/stringio/stringio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index 6ae9e805b5..4c135ef8c2 100644 --- a/ext/stringio/stringio.c +++ b/ext/stringio/stringio.c @@ -11,6 +11,8 @@ **********************************************************************/ +#define STRINGIO_VERSION "0.0.2" + #include "ruby.h" #include "ruby/io.h" #include "ruby/encoding.h" @@ -1629,6 +1631,8 @@ Init_stringio(void) #undef rb_intern VALUE StringIO = rb_define_class("StringIO", rb_cData); + rb_define_const(StringIO, "VERSION", rb_str_new_cstr(STRINGIO_VERSION)); + rb_include_module(StringIO, rb_mEnumerable); rb_define_alloc_func(StringIO, strio_s_allocate); rb_define_singleton_method(StringIO, "new", strio_s_new, -1); |