Sha256: 2cb43362cd84a246bb68d555e3fddee15dd3e08b70abe3204cf1b960cff997aa

Contents?: true

Size: 484 Bytes

Versions: 5

Compression:

Stored size: 484 Bytes

Contents

# typed: strict
# frozen_string_literal: true

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

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

          send.each_arg(Prism::SymbolNode) do |arg|
            @index.reference_method(arg.unescaped, send.location)
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spoom-1.5.0 lib/spoom/deadcode/plugins/action_mailer.rb
spoom-1.4.2 lib/spoom/deadcode/plugins/action_mailer.rb
spoom-1.4.1 lib/spoom/deadcode/plugins/action_mailer.rb
spoom-1.4.0 lib/spoom/deadcode/plugins/action_mailer.rb
spoom-1.3.3 lib/spoom/deadcode/plugins/action_mailer.rb