Sha256: 6668c5a7378c29dec68c1a1b5fedf6ceb907b2e81b76896e7b26c83b91f92561

Contents?: true

Size: 733 Bytes

Versions: 27

Compression:

Stored size: 733 Bytes

Contents

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

module Foobara
  module Callback
    module Registry
      class ChainedMultipleAction < MultipleAction
        attr_accessor :other_multiple_actions_registry

        class InvalidConditions < StandardError; end

        foobara_delegate :possible_actions, :allowed_types, to: :other_multiple_actions_registry

        def initialize(other_multiple_actions_registry)
          self.other_multiple_actions_registry = other_multiple_actions_registry
          super(possible_actions)
        end

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

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
foobara-0.0.7 projects/callback/src/registry/chained_multiple_action.rb
foobara-0.0.6 projects/callback/src/registry/chained_multiple_action.rb
foobara-0.0.5 projects/callback/src/registry/chained_multiple_action.rb
foobara-0.0.4 projects/callback/src/registry/chained_multiple_action.rb
foobara-0.0.3 projects/callback/src/registry/chained_multiple_action.rb
foobara-0.0.2 projects/callback/src/registry/chained_multiple_action.rb
foobara-0.0.1 projects/callback/src/registry/chained_multiple_action.rb