Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

new line in ruby

# For a new line, insert 

print "hello", "
", "hello", "
"

# puts automatically adds new line at end of text
puts "run"

# also use 
 in strings
text = "The quick, brown fox
jumped"
print text;
 
PREVIOUS NEXT
Tagged: #line #ruby
ADD COMMENT
Topic
Name
3+5 =