# File lib/pry/commands/ls/methods.rb, line 23
      def output_self
        methods = all_methods.group_by(&:owner)
        # Reverse the resolution order so that the most useful information
        # appears right by the prompt.
        resolution_order.take_while(&below_ceiling).reverse.map do |klass|
          methods_here = (methods[klass] || []).select { |m| grep.regexp[m.name] }
          heading = "#{ Pry::WrappedModule.new(klass).method_prefix }methods"
          output_section(heading, format(methods_here))
        end.join('')
      end