class Pry::Command::ShowSource

def docs_for(code_object)

dont need to check them)
have multiple docs, but methods can only be doc'd once so we
(note we only have to check yard docs for modules since they can
has yard docs available, in which case it returns those.
Return docs for the code_object, adjusting for whether the code_object
def docs_for(code_object)
  if code_object.module_with_yard_docs?
    # yard docs
    code_object.yard_doc
  else
    # normal docs (i.e comments above method/module/command)
    code_object.doc
  end
end