Module: IO::generic_readable
- Defined in:
- ext/io/console/console.c
Instance Method Summary collapse
-
#getch(min: nil, time: nil) ⇒ String
See IO#getch.
-
#getpass(prompt = nil) ⇒ String
See IO#getpass.
Instance Method Details
#getch(min: nil, time: nil) ⇒ String
See IO#getch.
869 870 871 872 873 |
# File 'ext/io/console/console.c', line 869 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.
936 937 938 939 940 941 942 943 944 945 946 |
# File 'ext/io/console/console.c', line 936 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; } |