Module: IO::generic_readable

Defined in:
console/console.c

Instance Method Summary collapse

Instance Method Details

#getch(min:nil, time:nil) ⇒ String

See IO#getch.

Returns:

  • (String)

760
761
762
763
764
# File 'console/console.c', line 760

static VALUE
io_getch(int argc, VALUE *argv, VALUE io)
{
    return rb_funcall2(io, rb_intern("getc"), argc, argv);
}