Permalink
Browse files

gist --doc works with classes and methods, fixes #609

  • Loading branch information...
1 parent 5964326 commit 8f83cb14cf0a280b5e80004c1f08db820c5ae866 @shirmung shirmung committed Jul 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/pry/default_commands/gist.rb
@@ -40,7 +40,7 @@ def options(opt)
opt.on :d, :doc, "Gist a method's documentation.", :argument => true do |meth_name|
meth = get_method_or_raise(meth_name, target, {})
text.no_color do
- self.content << process_comment_markup(meth.doc, self.code_type) << "\n"
+ self.content << process_comment_markup(meth.doc, :plain) << "\n"
end
self.filename = meth.source_file + ".doc"
end

0 comments on commit 8f83cb1

Please sign in to comment.