Class: IO
- Inherits:
-
Object
- Object
- IO
- Defined in:
- (unknown)
Instance Method Summary collapse
Instance Method Details
#to_ptr ⇒ Object
565 566 567 568 569 570 571 572 573 574 575 |
# File 'ext/rubysl/dl/dl.c', line 565
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;
}
|