[ruby/stringio] [DOC] Add missing documents
https://github.com/ruby/stringio/commit/9cc1dfa19c
This commit is contained in:
parent
35706c608c
commit
c913f3347c
@ -1698,8 +1698,14 @@ strio_read_nonblock(int argc, VALUE *argv, VALUE self)
|
||||
return val;
|
||||
}
|
||||
|
||||
/*
|
||||
* See IO#write
|
||||
*/
|
||||
#define strio_syswrite rb_io_write
|
||||
|
||||
/*
|
||||
* See IO#write_nonblock
|
||||
*/
|
||||
static VALUE
|
||||
strio_syswrite_nonblock(int argc, VALUE *argv, VALUE self)
|
||||
{
|
||||
@ -1825,6 +1831,15 @@ strio_set_encoding(int argc, VALUE *argv, VALUE self)
|
||||
return self;
|
||||
}
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
* strio.set_encoding_by_bom => strio or nil
|
||||
*
|
||||
* Sets the encoding according to the BOM (Byte Order Mark) in the
|
||||
* string.
|
||||
*
|
||||
* Returns +self+ if the BOM is found, otherwise +nil.
|
||||
*/
|
||||
static VALUE
|
||||
strio_set_encoding_by_bom(VALUE self)
|
||||
{
|
||||
@ -1857,6 +1872,7 @@ Init_stringio(void)
|
||||
|
||||
VALUE StringIO = rb_define_class("StringIO", rb_cObject);
|
||||
|
||||
/* The version string */
|
||||
rb_define_const(StringIO, "VERSION", rb_str_new_cstr(STRINGIO_VERSION));
|
||||
|
||||
rb_include_module(StringIO, rb_mEnumerable);
|
||||
|
Loading…
x
Reference in New Issue
Block a user