Skip to content

Instantly share code, notes, and snippets.

@g3ortega
Created March 26, 2013 17:48
Show Gist options
  • Save g3ortega/5247520 to your computer and use it in GitHub Desktop.
Save g3ortega/5247520 to your computer and use it in GitHub Desktop.
Testing Ruby!
puts "Hello World!"
puts 2 + 3 * 5
puts "Ho! " + "Ho! " + "Merry Christmas's!"
puts "Ho! " * 3 + "Merry Christmas's";
puts "toc toc Penny! " * 3
puts "*" * 60
puts "The length of \t\"Merry Christmas\" is: \n"
puts 'The length of \"Merry Christmas\" is: \n'
print "Hello\n" + "Gerardo\n"
nombre = "Gera\n"
puts "*" * 15
puts nombre.length
puts nombre.chomp.length
puts "Merry Christmas".length
puts "Merry Christmas".upcase
puts "Merry Christmas".downcase
puts "Merry Christmas".reverse
puts gets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment