Class: CodeAnalyzer::CheckingVisitor::Base
- Inherits:
-
Object
- Object
- CodeAnalyzer::CheckingVisitor::Base
- Defined in:
- lib/code_analyzer/checking_visitor/base.rb
Overview
Base class for checking visitor.
Instance Method Summary collapse
- #after_check ⇒ Object
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
- #warnings ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
5 6 7 |
# File 'lib/code_analyzer/checking_visitor/base.rb', line 5 def initialize( = {}) @checkers = [:checkers] end |
Instance Method Details
#after_check ⇒ Object
9 |
# File 'lib/code_analyzer/checking_visitor/base.rb', line 9 def after_check; end |
#warnings ⇒ Object
11 12 13 |
# File 'lib/code_analyzer/checking_visitor/base.rb', line 11 def warnings @warnings ||= @checkers.map(&:warnings).flatten end |