Skip to content

Instantly share code, notes, and snippets.

@Tho85
Created July 22, 2013 10:02
Show Gist options
  • Save Tho85/6052738 to your computer and use it in GitHub Desktop.
Save Tho85/6052738 to your computer and use it in GitHub Desktop.
require 'pry'
class FooBar
def hello
puts "world!"
end
end
puts Pry::WrappedModule.new(FooBar).source
# => "class FooBar\n def hello\n puts \"world!\"\n end\nend\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment