Class: Canvas::Checks
- Inherits:
-
Object
- Object
- Canvas::Checks
- Defined in:
- lib/canvas/checks.rb
Overview
:documented:
Class Method Summary collapse
Class Method Details
.deregister_all! ⇒ Object
17 18 19 |
# File 'lib/canvas/checks.rb', line 17 def deregister_all! @checks = [] end |
.register(klass) ⇒ Object
11 12 13 14 15 |
# File 'lib/canvas/checks.rb', line 11 def register(klass) @checks ||= [] return if @checks.include?(klass) @checks << klass end |
.registered ⇒ Object
7 8 9 |
# File 'lib/canvas/checks.rb', line 7 def registered @checks ||= [] end |