title: Ruby equivalent to Python's help()?
body: <p>When working in interactive Python, I tend to rely on the built-in <code>help()</code> function to tell me what something expects and/or returns, and print out any documentation that might help me. Is there a Ruby equivalent to this function?</p>
  
  <p>I'm looking for something I could use in irb. For example, in interactive Python I could type:</p>
  
  <pre><code>&gt;&gt;&gt; help(1)
  </code></pre>
  
  <p>which would then print</p>
  
  <pre><code>Help on int object:
  
  class int(object)  |  int(x[, base])
  -&gt; integer  |    |  
  
  Convert a string or number to an integer, if possible. A ...
  </code></pre>