Sha256: d47b53f939fdc21f3f112b4169066df4151f80a95bcc642e50acf61d95ea37be
Contents?: true
Size: 226 Bytes
Versions: 36
Compression:
Stored size: 226 Bytes
Contents
module RubyXL class Color #validates hex color code, no '#' allowed def Color.validate_color(color) if color =~ /^([a-f]|[A-F]|[0-9]){6}$/ return true else raise 'invalid color' end end end end
Version data entries
36 entries across 36 versions & 3 rubygems