# File lib/color/grayscale.rb, line 51 def ==(other) other = other.to_grayscale other.kind_of?(Color::GrayScale) and ((@g - other.g).abs <= Color::COLOR_TOLERANCE) end