Class: Guideline::UnusedMethodChecker::MethodChecker
- Inherits:
-
CodeAnalyzer::Checker
- Object
- CodeAnalyzer::Checker
- Guideline::UnusedMethodChecker::MethodChecker
- Defined in:
- lib/guideline/checkers/unused_method_checker.rb
Direct Known Subclasses
Instance Method Summary collapse
- #call(method) ⇒ Object
-
#initialize(&callback) ⇒ MethodChecker
constructor
A new instance of MethodChecker.
Constructor Details
#initialize(&callback) ⇒ MethodChecker
Returns a new instance of MethodChecker.
74 75 76 77 |
# File 'lib/guideline/checkers/unused_method_checker.rb', line 74 def initialize(*, &callback) @callback = callback super end |
Instance Method Details
#call(method) ⇒ Object
79 80 81 |
# File 'lib/guideline/checkers/unused_method_checker.rb', line 79 def call(method) @callback.call(method) end |