Skip to content

Instantly share code, notes, and snippets.

@simi
Created September 22, 2010 14:24
Show Gist options
  • Save simi/591759 to your computer and use it in GitHub Desktop.
Save simi/591759 to your computer and use it in GitHub Desktop.
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