from_html (Color::RGB)

        # File lib/color/rgb.rb, line 45
    45:     def from_html(html_colour)
    46:       html_colour = html_colour.gsub(%r{[#;]}, '')
    47:       case html_colour.size
    48:       when 3
    49:         colours = html_colour.scan(%r{[0-9A-Fa-f]}).map { |el| (el * 2).to_i(16) }
    50:       when 6
    51:         colours = html_colour.scan(%r<[0-9A-Fa-f]{2}>).map { |el| el.to_i(16) }
    52:       else
    53:         raise ArgumentError
    54:       end
    55:
    56:       Color::RGB.new(*colours)
    57:     end