Sha256: e720032911d2fcb6481f6ebd1ad71a95870771d7025032e324f7f86b2e01bfd8

Contents?: true

Size: 492 Bytes

Versions: 5

Compression:

Stored size: 492 Bytes

Contents

# typed: strict
# frozen_string_literal: true

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

        ignore_methods_named("exit_on_failure?")

        sig { override.params(definition: Model::Method).void }
        def on_define_method(definition)
          owner = definition.owner
          return unless owner.is_a?(Model::Class)

          @index.ignore(definition) if subclass_of?(owner, "Thor")
        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/thor.rb
spoom-1.4.2 lib/spoom/deadcode/plugins/thor.rb
spoom-1.4.1 lib/spoom/deadcode/plugins/thor.rb
spoom-1.4.0 lib/spoom/deadcode/plugins/thor.rb
spoom-1.3.3 lib/spoom/deadcode/plugins/thor.rb