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: errors.rb
    path of file: ./repos/padrino-framework/padrino-helpers/lib/padrino-helpers/form_helpers
    
    the code of the file until where you have to start completion: module Padrino
  module Helpers
    module FormHelpers
      ##
      # Helpers to generate form errors.
      #
      module Errors
        ##
        # Constructs list HTML for th
    
        def error_html_attributes(options)
          [:id, :class, :style].each_with_object({}) do |key,all|
            if options.include?(key)
              value = options[key]
              all[key] = value if value
            else
              all[key] = 'field-errors' unless key == :style
            end
          end