J. mp wrote:
> a.instance_of? Array

and kind_of?, and (Array === a)... check them all out
and learn what they do.