title: Is there a way to view a method's source code from the Rails console?
body: <p>Let's say I have the following class:</p>
  
  <pre><code>class User &lt; ActiveRecord::Base
    def fullname
      "#{self.first_name} #{self.last_name}"
    end
  end
  </code></pre>
  
  <p>Is it possible for me to go into the console and view the fullname method's source code output in the console somehow? Like, it would look like...</p>
  
  <pre><code>irb(main):010:0&gt; omg_console_you_are_awesome_show_source(User.fullname)
  [Fri Jun 29 14:11:31 -0400 2012] =&gt; def fullname
  [Fri Jun 29 14:11:31 -0400 2012] =&gt;   "#{self.first_name} #{self.last_name}"
  [Fri Jun 29 14:11:31 -0400 2012] =&gt; end
  </code></pre>
  
  <p>Or really any way to view source code? Thanks!</p>