# File lib/pry/method.rb, line 282 def doc @doc ||= case source_type when :c info = pry_doc_info info.docstring if info when :ruby if Helpers::BaseHelpers.rbx? && !pry_method? strip_leading_hash_and_whitespace_from_ruby_comments(core_doc) elsif pry_method? strip_leading_hash_and_whitespace_from_ruby_comments(doc_for_pry_method) else strip_leading_hash_and_whitespace_from_ruby_comments(@method.comment) end end end