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: word_wrap.rb
    path of file: ./repos/shoulda-matchers/lib/shoulda/matchers/util
    
    the code of the file until where you have to start completion: module Shoulda
  module Matchers
    # @p
    
      def combine_list_item_lines(lines)
        lines.inject([]) do |combined_lines, line|
          if line.list_item?
            combined_lines << line
          else
            combined_lines.last << " #{line}".squeeze(' ')
          end

          combined_lines
        end