Class: Spoom::Deadcode::Plugins::Namespaces
- Defined in:
- lib/spoom/deadcode/plugins/namespaces.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#on_define_class(definition) ⇒ Object
: (Model::Class definition) -> void.
-
#on_define_module(definition) ⇒ Object
: (Model::Module definition) -> void.
Methods inherited from Base
ignore_classes_inheriting_from, ignore_classes_named, ignore_constants_named, ignore_methods_named, ignore_modules_named, #initialize, #internal_on_define_accessor, #internal_on_define_class, #internal_on_define_constant, #internal_on_define_method, #internal_on_define_module, #on_define_accessor, #on_define_constant, #on_define_method, #on_send
Constructor Details
This class inherits a constructor from Spoom::Deadcode::Plugins::Base
Instance Method Details
#on_define_class(definition) ⇒ Object
: (Model::Class definition) -> void
10 11 12 |
# File 'lib/spoom/deadcode/plugins/namespaces.rb', line 10 def on_define_class(definition) @index.ignore(definition) if used_as_namespace?(definition) end |
#on_define_module(definition) ⇒ Object
: (Model::Module definition) -> void
16 17 18 |
# File 'lib/spoom/deadcode/plugins/namespaces.rb', line 16 def on_define_module(definition) @index.ignore(definition) if used_as_namespace?(definition) end |