Sha256: 6d277f54aec04132a21c53260ecfb84fa6d4948ef5d3ce86217f8c3d1f8c1e14
Contents?: true
Size: 577 Bytes
Versions: 5
Compression:
Stored size: 577 Bytes
Contents
module Hue module Colors class Color ERROR_METHOD_NOT_IMPLEMENTED = 'method-not-implemented' def self.ranged(min, val, max) [[min, val].max, max].min end public def to_hash raise ERROR_METHOD_NOT_IMPLEMENTED end def to_s raise ERROR_METHOD_NOT_IMPLEMENTED end def to_rgb raise ERROR_METHOD_NOT_IMPLEMENTED end protected def ranged(min, val, max) # For convinence and polymorphism self.class.ranged(min, val, max) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems