Display a message in the output pane
puts
[output (string)]
Displays the information you specify as a string inside the output pane. This can be a number, symbol, or a string itself. Useful for debugging. Synonym for print.
Introduced in v2.0.0
|
print "hello there" |
#=> will print the string "hello there" to the output pane |
|
print 5 |
#=> will print the number 5 to the output pane |
|
print foo |
#=> will print the contents of foo to the output pane |