# File lib/pry/default_commands/introspection.rb, line 128 def all_modules doc = "" doc << "Found #{module_object.number_of_candidates} candidates for `#{module_object.name}` definition:\n" module_object.number_of_candidates.times do |v| candidate = module_object.candidate(v) begin doc << "\nCandidate #{v+1}/#{module_object.number_of_candidates}: #{candidate.file} @ #{candidate.line}:\n\n" doc << candidate.doc rescue Pry::RescuableException doc << "No documentation found.\n" next end end doc end