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)


735
736
737
738
739
# File 'console/console.c', line 735

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