Module: IO::generic_readable
- Defined in:
- console/console.c
Instance Method Summary collapse
-
#getch(min: nil, time: nil, intr: nil) ⇒ String
See IO#getch.
-
#getpass(prompt = nil) ⇒ String
See IO#getpass.
Instance Method Details
#getch(min: nil, time: nil, intr: nil) ⇒ String
See IO#getch.
1532 1533 1534 1535 1536 |
# File 'console/console.c', line 1532 static VALUE io_getch(int argc, VALUE *argv, VALUE io) { return rb_funcallv(io, id_getc, argc, argv); } |
#getpass(prompt = nil) ⇒ String
See IO#getpass.
1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 |
# File 'console/console.c', line 1598 static VALUE io_getpass(int argc, VALUE *argv, VALUE io) { VALUE str; rb_check_arity(argc, 0, 1); prompt(argc, argv, io); str = str_chomp(rb_funcallv(io, id_gets, 0, 0)); puts_call(io); return str; } |