Skip to content

Instantly share code, notes, and snippets.

@ik5
Created July 31, 2012 11:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ik5/3216219 to your computer and use it in GitHub Desktop.
Save ik5/3216219 to your computer and use it in GitHub Desktop.
case that does not work
a = {'one' => 1 }
puts "a.class = #{a.class}"
case a.class
when Hash
puts 'Hash'
else
puts 'not Hash'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment