Class: IO
- Inherits:
-
Object
- Object
- IO
- Defined in:
- (unknown)
Instance Method Summary collapse
Instance Method Details
#to_ptr ⇒ Object
551 552 553 554 555 556 557 558 559 560 561 |
# File 'dl.c', line 551
VALUE
rb_io_to_ptr(VALUE self)
{
rb_io_t *fptr;
FILE *fp;
GetOpenFile(self, fptr);
fp = fptr->f;
return fp ? rb_dlptr_new(fp, 0, 0) : Qnil;
}
|