Class: Colors::AbstractColor

Inherits:
Object
  • Object
show all
Defined in:
lib/colors/abstract_color.rb

Direct Known Subclasses

HSL, RGB, XYY, XYZ, Xterm256

Instance Method Summary collapse

Instance Method Details

#desaturate(factor) ⇒ Object



3
4
5
# File 'lib/colors/abstract_color.rb', line 3

def desaturate(factor)
  unsupported __method__
end

#inspectObject



7
8
9
# File 'lib/colors/abstract_color.rb', line 7

def inspect
  "#{self.class.name}(#{components.join(", ")})"
end