Sha256: f77159b836542bdc82c8bdd3f61f426497fb6883628f4150837f9ba03b0c98e2

Contents?: true

Size: 207 Bytes

Versions: 5

Compression:

Stored size: 207 Bytes

Contents

module Dry
  module Validation
    class Rule::Value < Rule
      def call(input)
        Validation.Result(input, predicate.(input), self)
      end

      def type
        :val
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dry-validation-0.4.1 lib/dry/validation/rule/value.rb
dry-validation-0.4.0 lib/dry/validation/rule/value.rb
dry-validation-0.3.1 lib/dry/validation/rule/value.rb
dry-validation-0.3.0 lib/dry/validation/rule/value.rb
dry-validation-0.2.0 lib/dry/validation/rule/value.rb