putc

ios.putc(obj) â obj
Instance Public methods

If obj is Numeric, write the character whose code is the least-significant byte of obj, otherwise write the first byte of the string representation of obj to ios. Note: This method is not safe for use with multi-byte characters as it will truncate them.

$stdout.putc "A"
$stdout.putc 65

produces:

AA
doc_ruby_on_rails
2015-04-13 13:14:16
Comments
Leave a Comment

Please login to continue.