title: Determining type of an object in ruby
body: <p>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):</p>
  
  <pre><code>&gt;&gt;&gt; a = 1
  &gt;&gt;&gt; type(a)
  &lt;type 'int'&gt;
  </code></pre>
  
  <p>I know in ruby I can do :</p>
  
  <pre><code>1.9.3p194 :002 &gt; 1.class
   =&gt; Fixnum 
  </code></pre>
  
  <p>But is this the proper way to determine the type of the object?</p>