Sha256: 9eb9df7702bb7033b9ca3768f57a5702c5d1a68bf0134f0d20bb4d74615a299c

Contents?: true

Size: 703 Bytes

Versions: 26

Compression:

Stored size: 703 Bytes

Contents

Foobara.require_project_file("callback", "registry/conditioned")

module Foobara
  module Callback
    module Registry
      class ChainedConditioned < Conditioned
        attr_accessor :other_conditions_registry

        class InvalidConditions < StandardError; end

        foobara_delegate :possible_conditions, :possible_condition_keys, to: :other_conditions_registry

        def initialize(other_conditions_registry)
          self.other_conditions_registry = other_conditions_registry
          super(possible_conditions)
        end

        def unioned_callback_set_for(...)
          super.union(other_conditions_registry.unioned_callback_set_for(...))
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
foobara-0.0.26 projects/callback/src/registry/chained_conditioned.rb
foobara-0.0.25 projects/callback/src/registry/chained_conditioned.rb
foobara-0.0.24 projects/callback/src/registry/chained_conditioned.rb
foobara-0.0.23 projects/callback/src/registry/chained_conditioned.rb
foobara-0.0.22 projects/callback/src/registry/chained_conditioned.rb
foobara-0.0.21 projects/callback/src/registry/chained_conditioned.rb
foobara-0.0.20 projects/callback/src/registry/chained_conditioned.rb
foobara-0.0.19 projects/callback/src/registry/chained_conditioned.rb
foobara-0.0.18 projects/callback/src/registry/chained_conditioned.rb
foobara-0.0.17 projects/callback/src/registry/chained_conditioned.rb
foobara-0.0.16 projects/callback/src/registry/chained_conditioned.rb
foobara-0.0.15 projects/callback/src/registry/chained_conditioned.rb
foobara-0.0.14 projects/callback/src/registry/chained_conditioned.rb
foobara-0.0.13 projects/callback/src/registry/chained_conditioned.rb
foobara-0.0.12 projects/callback/src/registry/chained_conditioned.rb
foobara-0.0.11 projects/callback/src/registry/chained_conditioned.rb
foobara-0.0.10 projects/callback/src/registry/chained_conditioned.rb
foobara-0.0.9 projects/callback/src/registry/chained_conditioned.rb
foobara-0.0.8 projects/callback/src/registry/chained_conditioned.rb
foobara-0.0.7 projects/callback/src/registry/chained_conditioned.rb