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
Hash === @some_var #=> return Boolean
this can also be used with case statement
case @some_var when Hash ... when Array ... end