class Rouge::Formatters::Terminal256::EscapeSequence

def self.get_rgb(color)

def self.get_rgb(color)
  color = $1 if color =~ /#([0-9a-f]+)/i
  hexes = case color.size
  when 3
    color.chars.map { |c| "#{c}#{c}" }
  when 6
    color.scan(/../)
  else
    raise "invalid color: #{color}"
  end
  hexes.map { |h| h.to_i(16) }
end