Passing multiple strings to `puts` in Ruby
If you pass multiple string arguments to puts
, it prints each on a new line, e.g:
puts "hello", "world"
Would output hello and world on separate lines.
If you pass multiple string arguments to puts
, it prints each on a new line, e.g:
puts "hello", "world"
Would output hello and world on separate lines.
Looking for help? Each developer at Hashrocket has years of experience working with Ruby applications of all types and sizes. Contact us today and find out how we can help you.