From: Hassan Schroeder Date: 2011-10-06T04:47:17+09:00 Subject: Re: How to output an instance's type On Wed, Oct 5, 2011 at 12:40 PM, Viaduct Productions wrote: > How do I output the type of a variable? > > alpha = {"one", 1, "two", 2} > puts alpha.type                 # this is what I am trying to do "type"? Maybe you actually mean 'alpha.class' ? -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com http://about.me/hassanschroeder twitter: @hassan