lib/tram/policy/errors.rb in tram-policy-0.0.2 vs lib/tram/policy/errors.rb in tram-policy-0.0.3

- old
+ new

@@ -49,11 +49,11 @@ # Checks whether a collection is empty # # @return [Boolean] # - def empty? - !any? + def empty?(&block) + block ? !any?(&block) : !any? end # The array of ordered error messages # # @return [Array<String>]