Sha256: ce8d28558d8da780fc7a91e724cb0fecb0e4cfb9146bacccc4ed2188886e24b6

Contents?: true

Size: 266 Bytes

Versions: 19

Compression:

Stored size: 266 Bytes

Contents

# frozen_string_literal: true

module Floe
  class Workflow
    class ChoiceRule
      class And < Floe::Workflow::ChoiceRule
        def true?(context, input)
          children.all? { |choice| 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/and.rb
floe-0.15.0 lib/floe/workflow/choice_rule/and.rb
floe-0.14.0 lib/floe/workflow/choice_rule/and.rb
floe-0.13.1 lib/floe/workflow/choice_rule/and.rb
floe-0.13.0 lib/floe/workflow/choice_rule/and.rb
floe-0.12.0 lib/floe/workflow/choice_rule/and.rb
floe-0.11.3 lib/floe/workflow/choice_rule/and.rb
floe-0.11.0 lib/floe/workflow/choice_rule/and.rb
floe-0.10.0 lib/floe/workflow/choice_rule/and.rb
floe-0.9.0 lib/floe/workflow/choice_rule/and.rb
floe-0.7.1 lib/floe/workflow/choice_rule/and.rb
floe-0.8.0 lib/floe/workflow/choice_rule/and.rb
floe-0.7.0 lib/floe/workflow/choice_rule/and.rb
floe-0.6.1 lib/floe/workflow/choice_rule/and.rb
floe-0.6.0 lib/floe/workflow/choice_rule/and.rb
floe-0.5.0 lib/floe/workflow/choice_rule/and.rb
floe-0.4.1 lib/floe/workflow/choice_rule/and.rb
floe-0.4.0 lib/floe/workflow/choice_rule/and.rb
floe-0.3.1 lib/floe/workflow/choice_rule/and.rb