Sha256: b5d04fa7ab03ee8ce0fd3bf1624b45d766ebfa11945778821d16f69b52a60994

Contents?: true

Size: 420 Bytes

Versions: 4

Compression:

Stored size: 420 Bytes

Contents

# frozen_string_literal: true

module IIInteractor
  module Lookups
    class Name < Base
      def call
        IIInteractor.load
        IIInteractor::Base.descendants.select do |interactor|
          interactor._reactions.any? { |reaction| reaction == @interaction }
        end
      end

      class << self
        def call?(interaction)
          interaction.is_a?(Symbol)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ii_interactor-1.2.0 lib/ii_interactor/lookups/name.rb
ii_interactor-1.1.1 lib/ii_interactor/lookups/name.rb
ii_interactor-1.1.0 lib/ii_interactor/lookups/name.rb
ii_interactor-1.0.0 lib/ii_interactor/lookups/name.rb