Sha256: 9a7a166032951f0346842c7045c59ca26d8eeea9ac5173c7d381365f62170c8a

Contents?: true

Size: 227 Bytes

Versions: 1

Compression:

Stored size: 227 Bytes

Contents

module Dry
  module Logic
    class Rule::Check < Rule
      alias_method :result, :predicate

      def call(*)
        Logic.Result(nil, result.call, self)
      end

      def type
        :check
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dry-logic-0.1.0 lib/dry/logic/rule/check.rb