News for hackers. Stuff that matters.
Re:Ruby 2.1.0 preview1 released by cheald on Monday September 23, 2013 @02:22PM (#6433068)
For what it's worth, if you're just looking to get at the innards of a method, Pry does this job admirably.

https://gist.github.com/cheald/6674718

https://github.com/pry/pry/wiki/Source-browsing

Or to get the source as a string:

    > require 'pry'
    > Nokogiri.method(:HTML).source
      => "    def HTML thing, url = nil, encoding = nil, options = XML::ParseOptions::DEFAULT_HTML, &block\n      Nokogiri::HTML::Document.parse(thing, url, encoding, options, &block)\n    end\n"
Re:Ruby 2.1.0 preview1 released by VeejayRampay on Monday September 23, 2013 @03:02PM (#6433396)
Pry is awesome. You can even navigate your source shell-style and do all sorts of fancy things with it. Great little gem.