Fix IO object test
This commit is contained in:
parent
9d78dac57e
commit
80ccf89619
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ is_string_array(VALUE v)
|
|||
static int
|
||||
is_io(VALUE v)
|
||||
{
|
||||
return !strcmp(rb_obj_classname(v), "IO");
|
||||
return rb_obj_is_kind_of(v, rb_cIO) == Qtrue;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Add table
Reference in a new issue