instance method
OpenSSL::Buffering#puts
(*untyped args) -> nil
puts(*args)
ext/openssl/lib/openssl/buffering.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/ext/openssl/lib/openssl/buffering.rb, line 450
def puts(*args)
s = Buffer.new
if args.empty?
s.append_as_bytes("\n")
end
args.each{|arg|
s.append_as_bytes(arg.to_s)
s.sub!(/(?<!\n)\z/, "\n")
}
do_write(s)
nil
end
Writes args to the stream along with a record separator.
See IO#puts for full details.