lib/atacama/contract/parameter.rb in atacama-0.1.7 vs lib/atacama/contract/parameter.rb in atacama-0.1.8
- old
+ new
@@ -7,15 +7,7 @@
def initialize(name:, type: nil)
@name = name
@type = type
end
-
- # Determine the validity of a value for an optionally given type. Raises a
- # type error on failure.
- #
- # @raise [Dry::Types::ConstraintError]
- def validate!(value)
- type[value] && nil unless type.nil?
- end
end
end