instance method
IO#printf
(::String format_string, *untyped objects) -> nil
printf(format_string, *objects) → nil
io.c
View on GitHub ↗
VALUE
rb_io_printf(int argc, const VALUE *argv, VALUE out)
{
rb_io_write(out, rb_f_sprintf(argc, argv));
return Qnil;
}
Formats and writes objects to the stream.
For details on format_string, see Format Specifications.