Skip to content

Instantly share code, notes, and snippets.

@dummied
Created October 5, 2015 15:33
Show Gist options
  • Save dummied/45f2713d6d88e06ee912 to your computer and use it in GitHub Desktop.
Save dummied/45f2713d6d88e06ee912 to your computer and use it in GitHub Desktop.
In-class example for Week 1, Day 1
artist = ARGV[0].dup if ARGV[0]
second_variable = ARGV[1].dup if ARGV[1]
if artist
artist.downcase!
end
if second_variable
second_variable = second_variable.to_i
end
puts artist
puts second_variable
puts second_variable.class
if artist == "trent" || artist == "terrence"
puts "Terrence Trent D'Arby or Reznor?"
elsif artist == "david"
puts "Bowie"
elsif artist == "paul"
puts "John, George and Ringo"
else
puts "I have no idea"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment