Class: Spoom::Deadcode::Plugins::Namespaces
- Inherits:
-
Base
- Object
- Base
- Spoom::Deadcode::Plugins::Namespaces
show all
- Extended by:
- T::Sig
- Defined in:
- lib/spoom/deadcode/plugins/namespaces.rb
Instance Method Summary
collapse
Methods inherited from Base
ignore_classes_inheriting_from, ignore_classes_named, ignore_constants_named, ignore_methods_named, ignore_modules_named, #internal_on_define_accessor, #internal_on_define_class, #internal_on_define_constant, #internal_on_define_method, #internal_on_define_module, #internal_on_send, #on_define_accessor, #on_define_constant, #on_define_method, #on_send
Instance Method Details
#on_define_class(indexer, definition) ⇒ Object
11
12
13
|
# File 'lib/spoom/deadcode/plugins/namespaces.rb', line 11
def on_define_class(indexer, definition)
definition.ignored! if used_as_namespace?(indexer)
end
|
#on_define_module(indexer, definition) ⇒ Object
16
17
18
|
# File 'lib/spoom/deadcode/plugins/namespaces.rb', line 16
def on_define_module(indexer, definition)
definition.ignored! if used_as_namespace?(indexer)
end
|