Sha256: ffe3f399b1898d9da58e5179de85b63fee4ff3e9d3cc7196c55cc16b6f963970

Contents?: true

Size: 491 Bytes

Versions: 3

Compression:

Stored size: 491 Bytes

Contents

# typed: strict
# frozen_string_literal: true

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

        ignore_classes_inheriting_from("ActionMailer::Preview")

        sig { override.params(indexer: Indexer, definition: Definition).void }
        def on_define_method(indexer, definition)
          definition.ignored! if indexer.nesting_class_superclass_name == "ActionMailer::Preview"
        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_preview.rb
spoom-1.3.1 lib/spoom/deadcode/plugins/action_mailer_preview.rb
spoom-1.3.0 lib/spoom/deadcode/plugins/action_mailer_preview.rb