Class: Canvas::Check
- Inherits:
-
Object
- Object
- Canvas::Check
- Defined in:
- lib/canvas/check.rb
Overview
:documented:
Direct Known Subclasses
RequiredFilesCheck, ValidBlockSchemasCheck, ValidCustomTypesCheck, ValidFooterSchemaCheck, ValidHtmlCheck, ValidJsonCheck, ValidLiquidCheck, ValidMenuSchemaCheck, ValidSassCheck
Instance Attribute Summary collapse
-
#offenses ⇒ Object
readonly
Returns the value of attribute offenses.
Instance Method Summary collapse
- #failed? ⇒ Boolean
-
#initialize ⇒ Check
constructor
A new instance of Check.
- #run ⇒ Object
Constructor Details
#initialize ⇒ Check
Returns a new instance of Check.
10 11 12 |
# File 'lib/canvas/check.rb', line 10 def initialize @offenses = [] end |
Instance Attribute Details
#offenses ⇒ Object (readonly)
Returns the value of attribute offenses.
8 9 10 |
# File 'lib/canvas/check.rb', line 8 def offenses @offenses end |
Instance Method Details
#failed? ⇒ Boolean
18 19 20 |
# File 'lib/canvas/check.rb', line 18 def failed? @offenses.any? end |
#run ⇒ Object
14 15 16 |
# File 'lib/canvas/check.rb', line 14 def run raise NotImplementedError end |