Display a message in the output pane

print

[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 puts.

Introduced in v2.0

Example 0 

print "hello there"  



#=> will print the string "hello there" to the output pane



Example 1 

print 5              



#=> will print the number 5 to the output pane



Example 2 

print foo            



#=> will print the contents of foo to the output pane