Exception: ColorContrastCalc::InvalidColorRepresentationError
- Inherits:
-
StandardError
- Object
- StandardError
- ColorContrastCalc::InvalidColorRepresentationError
- Defined in:
- lib/color_contrast_calc/invalid_color_representation_error.rb
Overview
Error raised if creating a Color instance with invalid value.
Defined Under Namespace
Modules: Template
Class Method Summary collapse
Class Method Details
.from_value(value) ⇒ Object
39 40 41 42 |
# File 'lib/color_contrast_calc/invalid_color_representation_error.rb', line 39 def self.from_value(value) = format((value), value) new() end |