Skip to content

Instantly share code, notes, and snippets.

@Kingwindie
Created July 18, 2016 12:56
Show Gist options
  • Save Kingwindie/41e521b3392460b3b44a9afbdff6c7e0 to your computer and use it in GitHub Desktop.
Save Kingwindie/41e521b3392460b3b44a9afbdff6c7e0 to your computer and use it in GitHub Desktop.
puts "YUrI TOMoko".downcase
puts "spaceship".reverse
puts "racecar".reverse
puts "1776".reverse
puts 12 * "4".to_i
puts 3.to_s + "times a day"
puts "hello".upcase
puts "goodbye".downcase
puts "kingsley".capitalize
puts "chewbacca".length
puts "what are You DOing".swapcase
puts 2.even?
puts 3.even?
puts 2.odd?
puts 3.odd?
puts 10.next
# puts "5".to_i+3,or "5"+3.to_s use this to fix "5"+3(usually an error message) to s means to string to i means to integer
puts "5".to_i+3
puts "5"+3.to_s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment