def to_term(color_model = 256)
      term = case color_model
             when 256 then PryTheme::RGB::TABLE.index(@value)
             when 16  then PryTheme::RGB::SYSTEM.index(@value)
             when 8   then PryTheme::RGB::LINUX.index(@value)
             else raise ArgumentError,
                        "invalid value for PryTheme::HEX#to_term(): #{ @value }"
             end
      term = find_among_term_colors(term, color_model) if term.nil?
      PryTheme::TERM.new(term, color_model)
    end
def to_term(color_model = 256)
      term = case color_model
             when 256 then PryTheme::RGB::TABLE.index(@value)
             when 16  then PryTheme::RGB::SYSTEM.index(@value)
             when 8   then PryTheme::RGB::LINUX.index(@value)
             else raise ArgumentError,
                        "invalid value for PryTheme::HEX#to_term(): #{ @value }"
             end
      term = find_among_term_colors(term, color_model) if term.nil?
      PryTheme::TERM.new(term, color_model)
    end
Converts the RGB to a terminal colour equivalent.

 @note Accepts the following numbers: 256, 16, 8.
 @param [Integer] color_model
 @raise [ArgumentError] if +color_model+ parameter is incorrect
 @return [TERM] a TERM representation of the RGB