Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Vertical Thingy Disambiguator
puts "vertical thingy disambiguator"
thingy = gets.chomp
if thingy.length > 1
puts "too many thingies dude"
elsif thingy.length < 1
puts "where is the thingy?"
else
case thingy
when "l"
puts "its a lower case L as in Lipid"
when "1"
puts "its the number one"
when "|"
puts "itsa a pipea"
when "I"
puts "its a capital I as in Integer"
else
puts "thats not a vertical thingy, its just '#{thingy}'"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.