writeln(string)
Same as write but automatically include a newline at the end of the string.
# File actionpack/lib/action_controller/metal/live.rb, line 196 def writeln(string) write string.end_with?("\n") ? string : "#{string}\n" end