method_source (C) John Mair (banisterfiend) 2011 retrieve the sourcecode for a method NOTE: This simply utilizes Method#source_location; it does not access the live AST. method_source is a utility to return a method's sourcecode as a Ruby string. Also returns Proc and Lambda sourcecode. Method comments can also be extracted using the comment method. It is written in pure Ruby (no C). Some Ruby 1.8