# File lib/ansi_color.rb, line 23 def code case @color when Symbol then code_from_name when String then code_from_html when Array then code_from_rgb end end