public Method

Kernel.getc

obsolete

Source Code

/*
* obsolete
*/

static VALUE
rb_f_getc()
{
   rb_warn("getc is obsolete; use STDIN.getc instead");
   if (TYPE(rb_stdin) != T_FILE) {
       return rb_funcall3(rb_stdin, rb_intern("getc"), 0, 0);
   }
   return rb_io_getc(rb_stdin);
}
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.