instance method
Kernel#putc
[T < ::_ToInt] (T chr) -> T
(::String chr) -> ::String
putc(int) → int
io.c
View on GitHub ↗
static VALUE
rb_f_putc(VALUE recv, VALUE ch)
{
VALUE r_stdout = rb_ractor_stdout();
if (recv == r_stdout) {
return rb_io_putc(recv, ch);
}
return forward(r_stdout, rb_intern("putc"), 1, &ch);
}
Equivalent to:
Example
$stdout.putc(int)
See IO#putc for important information regarding multi-byte characters.