lib/cards_lib/refinements.rb in cards_lib-0.1.0 vs lib/cards_lib/refinements.rb in cards_lib-0.1.1
- old
+ new
@@ -5,12 +5,11 @@
result, *array = self.dup
loop do
break if array.empty?
other = array.shift
- return false if result.class != other.class
-
result = result.send(m, other)
+ return false unless result
end
true
end
end
end