title: In IRB, can I view the source of a method I defined earlier?
body: <p>If I define a method in IRB, is there any way to review its source later in the session?</p>
  
  <pre><code>&gt; def my_method
  &gt;   puts "hi"
  &gt; end
  </code></pre>
  
  <p>Several screens of output later I'd like to be able to write something like </p>
  
  <pre><code>&gt; source my_method
  </code></pre>
  
  <p>and get back:</p>
  
  <pre><code>=&gt; def my_method; puts "hi"; end;
  </code></pre>
  
  <p>Is this possible?</p>