You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: steps.rb
    path of file: ./repos/cucumber-ruby/lib/cucumber/formatter
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'cucumber/formatter/console'

module Cucumber
  module Formatter
    # The formatter used for <tt>--format steps</tt
    
      def print_summary
        count = 0
        @step_definition_files.keys.sort.each do |step_definition_file|
          @io.puts step_definition_file

          sources = @step_definition_files[step_definition_file]
          source_indent = source_indent(sources)
          sources.sort.each do |file_colon_line, regexp_source|
            @io.print indent(regexp_source, 2)
            @io.print indent(" # #{file_colon_line}", source_indent - regexp_source.unpack('U*').length)
            @io.puts
          end
          @io.puts
          count += sources.size
        end
        @io.puts "#{count} step definition(s) in #{@step_definition_files.size} source file(s)."
      end