class Pry::Method

def doc

Returns:
  • (String, nil) - The documentation for the method, or `nil` if it's
def doc
  @doc ||=
    case source_type
    when :c
      info = pry_doc_info
      info.docstring if info
    when :ruby
      get_comment_content(comment)
    end
end