I\'ll use python as an example of what I\'m looking for (you can think of it as pseudocode if you don\'t know Python):
>>> a = 1 >>> type(a) &l
you could also try: instance_of?
p 1.instance_of? Fixnum #=> True p "1".instance_of? String #=> True p [1,2].instance_of? Array #=> True