Skip to content

Instantly share code, notes, and snippets.

@Tho85
Created July 22, 2013 10:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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