Class: Applitools::AbstractRegion
- Inherits:
-
Object
- Object
- Applitools::AbstractRegion
- Defined in:
- lib/applitools/core/abstract_region.rb
Class Method Summary collapse
Class Method Details
.===(other) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/applitools/core/abstract_region.rb', line 6 def ===(other) result = true result &&= other.respond_to?(:location) result &&= other.respond_to?(:size) result &&= other.location.respond_to?(:x) result &&= other.location.respond_to?(:y) result &&= other.size.respond_to?(:width) result &&= other.size.respond_to?(:height) result end |