Skip to content

Instantly share code, notes, and snippets.

@Fresheyeball
Last active August 29, 2015 14:14
Show Gist options
  • Save Fresheyeball/47bd43cd28b02e4e0ac0 to your computer and use it in GitHub Desktop.
Save Fresheyeball/47bd43cd28b02e4e0ac0 to your computer and use it in GitHub Desktop.
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