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

require 'set'

module ApexCharts
  class Colors
    def initialize(color
    
    def clean(colors)
      colors = colors.respond_to?(:to_set) ? colors.to_a.flatten : Array(colors)
      colors.map do |color|
        color = color.upcase
        raise "unrecognized color #{color}" unless color[/^#[0-9A-F]{6}/]

        color
      end
    end