Skip to content

Instantly share code, notes, and snippets.

@harrisonmalone
Created February 26, 2020 22:22
Show Gist options
  • Select an option

  • Save harrisonmalone/79e4630ba926e7091410ebebf7e0521b to your computer and use it in GitHub Desktop.

Select an option

Save harrisonmalone/79e4630ba926e7091410ebebf7e0521b to your computer and use it in GitHub Desktop.
x = 7
p "stars".class
x = 9
p x.class
puts "HIP" + "HOP"
# 1.
puts 'Choco' + "late"
# sames as
# 2.
puts 'Choco'.+("late")
p "choco" + 15
a = "ice"
b = "cream"
p a + b
flavour = "vanilla"
flavour = "chocolate"
puts flavour
planet = "earth"
puts planet[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment