Created
October 30, 2008 23:35
-
-
Save fairchild/21173 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ticket = Array.new | |
puts "$$ #{ticket.class}" | |
tick = case ticket.class | |
when Fixnum: 'Im a number' | |
when Array: "im an array" | |
else 'ELSE' | |
end | |
puts tick | |
if ticket.class == Array | |
puts "if says im an array" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment