mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 15:43:58 +00:00
Update ruby.html.markdown
This commit is contained in:
parent
6ac7368b3b
commit
f165e721ce
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user