lib/cts/mpx/validators.rb in cts-mpx-1.0.3 vs lib/cts/mpx/validators.rb in cts-mpx-1.1.0
- old
+ new
@@ -25,9 +25,10 @@
# @yieldreturn [boolean] true if the outcome is valid, false otherwise.
# @return [boolean] true if the outcome is valid, false otherwise.
def argument_error?(data, type = nil, &block)
return block.yield if block
return true unless type && data.is_a?(type)
+
false
end
# Validates if a string is a reference
# @param [String] uri reference