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: chomp.rb
    path of file: ./repos/puppet/lib/puppet/functions
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# Returns a new string with
    
  def on_iterable(a)
    a.map { |x| do_chomp(x) }
  end

  def do_chomp(x)
    # x can only be a String or Numeric because type constraints have been automatically applied
    x.is_a?(String) ? x.chomp : x
  end
end