# File lib/color/rgb.rb, line 67 67: def ==(other) 68: other = other.to_rgb 69: other.kind_of?(Color::RGB) and 70: ((@r - other.r).abs <= 1e-4) and 71: ((@g - other.g).abs <= 1e-4) and 72: ((@b - other.b).abs <= 1e-4) 73: end