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
You can use instance_of?
instance_of?
e.g
@some_var.instance_of?(Hash)