To check what @some_var is, I am doing a
@some_var
if @some_var.class.to_s == \'Hash\'
I am sure there is a more elegant way to check if
I use this:
@var.respond_to?(:keys)
It works for Hash and ActiveSupport::HashWithIndifferentAccess.