# File lib/color/hsl.rb, line 34 34: def ==(other) 35: other = other.to_hsl 36: other.kind_of?(Color::HSL) and 37: ((@h - other.h).abs <= 1e-4) and 38: ((@s - other.s).abs <= 1e-4) and 39: ((@l - other.l).abs <= 1e-4) 40: end