Update ruby.html.markdown

This commit is contained in:
Kaleb Davis 2015-10-06 20:55:51 -04:00
parent 6ac7368b3b
commit f165e721ce

View File

@ -106,8 +106,14 @@ placeholder = 'use string interpolation'
'hello ' + 3 #=> TypeError: can't convert Fixnum into String
'hello ' + 3.to_s #=> "hello 3"
# print to the output
# print to the output with a newline at the end
puts "I'm printing!"
#=> I'm printing!
#=> nil
# print to the output without a newline
print "I'm printing!"
#=> I'm printing! => nill
# Variables
x = 25 #=> 25