lib/page_magic/drivers.rb in page_magic-1.2.6 vs lib/page_magic/drivers.rb in page_magic-1.2.7
- old
+ new
@@ -33,9 +33,9 @@
# returns true if this driver instance is equal to the supplied object
# @param [Object] other subject of equality check
# @return [Boolean] true if the object is a match
def ==(other)
- other.is_a?(Drivers) && all == other.all
+ other.respond_to?(:all) && all == other.all
end
end
end