Sha256: 1271fb27829944d1150b13796079e075a0487afd7a0d34d56eac590cf6d870c5

Contents?: true

Size: 508 Bytes

Versions: 3

Compression:

Stored size: 508 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module Spoom
  module Deadcode
    module Plugins
      class ActionMailer < Base
        extend T::Sig

        sig { override.params(indexer: Indexer, send: Send).void }
        def on_send(indexer, send)
          return unless send.recv.nil? && ActionPack::CALLBACKS.include?(send.name)

          send.each_arg(Prism::SymbolNode) do |arg|
            indexer.reference_method(arg.unescaped, send.node)
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spoom-1.3.2 lib/spoom/deadcode/plugins/action_mailer.rb
spoom-1.3.1 lib/spoom/deadcode/plugins/action_mailer.rb
spoom-1.3.0 lib/spoom/deadcode/plugins/action_mailer.rb