def normal_module
doc = ""
if module_object.yard_docs?
file_name, line = module_object.yard_file, module_object.yard_line
doc << module_object.yard_doc
start_line = 1
else
attempt do |rank|
file_name, line = module_object.candidate(rank).source_location
set_file_and_dir_locals(file_name)
doc << module_object.candidate(rank).doc
start_line = module_start_line(module_object, rank)
end
end
doc = Code.new(doc, start_line, :text).
with_line_numbers(use_line_numbers?).to_s
doc.insert(0, "\n#{Pry::Helpers::Text.bold('From:')} #{file_name} @ line #{line ? line : "N/A"}:\n\n")
end