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