Class: IO

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#to_ptrObject



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;
}