Class: Guideline::Checker
- Inherits:
-
Object
- Object
- Guideline::Checker
- Defined in:
- lib/guideline/checkers/checker.rb
Direct Known Subclasses
AbcComplexityChecker, HardTabIndentChecker, HashCommaChecker, LongLineChecker, LongMethodChecker, TrailingWhitespaceChecker, UnusedMethodChecker
Instance Method Summary collapse
- #errors ⇒ Object
- #has_error? ⇒ Boolean
-
#initialize(options = {}) ⇒ Checker
constructor
A new instance of Checker.
- #report(options) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Checker
Returns a new instance of Checker.
3 4 5 |
# File 'lib/guideline/checkers/checker.rb', line 3 def initialize( = {}) @options = end |
Instance Method Details
#errors ⇒ Object
7 8 9 |
# File 'lib/guideline/checkers/checker.rb', line 7 def errors @errors ||= [] end |
#has_error? ⇒ Boolean
20 21 22 |
# File 'lib/guideline/checkers/checker.rb', line 20 def has_error? !errors.empty? end |