class Pry::WrappedModule::Candidate

def doc

Returns:
  • (String) - The documentation for the candidate.

Raises:
  • (Pry::CommandError) - If documentation cannot be found.
def doc
  return nil if file.nil?
  @doc ||= get_comment_content(Pry::Code.from_file(file).comment_describing(line))
end