Created
September 22, 2010 14:24
-
-
Save simi/591759 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
test = Hash.new | |
test.class == Hash #=> true | |
case test.class.to_s | |
when "Hash" | |
true | |
else | |
false | |
end | |
end #=> true | |
case test.class | |
when Hash | |
true | |
else | |
false | |
end | |
end #=> false :((((((( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment