Sha256: 0c0627f33c7827a3ce21bc497a017590251328160840d6173f620002fed1acf2

Contents?: true

Size: 253 Bytes

Versions: 4

Compression:

Stored size: 253 Bytes

Contents

module Dry
  module Logic
    class Result::Value < Result
      def to_ast
        if response.respond_to?(:to_ast)
          response.to_ast
        else
          [:result, [rule.evaluate(input), rule.to_ast]]
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dry-logic-0.2.3 lib/dry/logic/result/value.rb
dry-logic-0.2.2 lib/dry/logic/result/value.rb
dry-logic-0.2.1 lib/dry/logic/result/value.rb
dry-logic-0.2.0 lib/dry/logic/result/value.rb