Method: Selenium::WebDriver::Support::Color#==

Defined in:
lib/selenium/webdriver/support/color.rb

#==(other) ⇒ Object Also known as: eql?



119
120
121
122
123
124
# File 'lib/selenium/webdriver/support/color.rb', line 119

def ==(other)
  return true if equal?(other)
  return false unless other.is_a?(self.class)

  [red, green, blue, alpha] == [other.red, other.green, other.blue, other.alpha]
end