Sha256: 9671ca4dcfa09cea95db804022c0798c8121d37df036042baeed161932497e8e

Contents?: true

Size: 274 Bytes

Versions: 19

Compression:

Stored size: 274 Bytes

Contents

# frozen_string_literal: true

module Floe
  class Workflow
    class ChoiceRule
      class Not < Floe::Workflow::ChoiceRule
        def true?(context, input)
          choice = children.first
          !choice.true?(context, input)
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
floe-0.15.1 lib/floe/workflow/choice_rule/not.rb
floe-0.15.0 lib/floe/workflow/choice_rule/not.rb
floe-0.14.0 lib/floe/workflow/choice_rule/not.rb
floe-0.13.1 lib/floe/workflow/choice_rule/not.rb
floe-0.13.0 lib/floe/workflow/choice_rule/not.rb
floe-0.12.0 lib/floe/workflow/choice_rule/not.rb
floe-0.11.3 lib/floe/workflow/choice_rule/not.rb
floe-0.11.0 lib/floe/workflow/choice_rule/not.rb
floe-0.10.0 lib/floe/workflow/choice_rule/not.rb
floe-0.9.0 lib/floe/workflow/choice_rule/not.rb
floe-0.7.1 lib/floe/workflow/choice_rule/not.rb
floe-0.8.0 lib/floe/workflow/choice_rule/not.rb
floe-0.7.0 lib/floe/workflow/choice_rule/not.rb
floe-0.6.1 lib/floe/workflow/choice_rule/not.rb
floe-0.6.0 lib/floe/workflow/choice_rule/not.rb
floe-0.5.0 lib/floe/workflow/choice_rule/not.rb
floe-0.4.1 lib/floe/workflow/choice_rule/not.rb
floe-0.4.0 lib/floe/workflow/choice_rule/not.rb
floe-0.3.1 lib/floe/workflow/choice_rule/not.rb