method
for_fd
v1_8_6_287 -
Show latest stable
- Class:
IO
for_fd(...)public
Synonym for IO::new.
/*
* call-seq:
* IO.for_fd(fd, mode) => io
*
* Synonym for <code>IO::new</code>.
*
*/
static VALUE
rb_io_s_for_fd(argc, argv, klass)
int argc;
VALUE *argv;
VALUE klass;
{
VALUE io = rb_obj_alloc(klass);
rb_io_initialize(argc, argv, io);
return io;
} Related methods
- Instance methods
- <<
- binmode
- close
- close_read
- close_write
- closed?
- each
- each_byte
- each_line
- eof
- eof?
- fcntl
- fileno
- flush
- fsync
- getc
- gets
- initialize_copy
- inspect
- ioctl
- isatty
- lineno
- lineno=
- pid
- pos
- pos=
- printf
- putc
- puts
- read
- read_nonblock
- readbytes
- readchar
- readline
- readlines
- readpartial
- reopen
- rewind
- scanf
- seek
- stat
- sync
- sync=
- sysread
- sysseek
- syswrite
- tell
- to_i
- to_io
- tty?
- ungetc
- write
- write_nonblock
- Class methods
- for_fd
- foreach
- new
- new
- open
- pipe
- popen
- read
- readlines
- select
- sysopen
- Private methods
-
block_scanf -
soak_up_spaces