Class: Nanoc::Checking::Loader Private
- Inherits:
-
Object
- Object
- Nanoc::Checking::Loader
- Defined in:
- lib/nanoc/checking/loader.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- CHECKS_FILENAMES =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
['Checks', 'Checks.rb', 'checks', 'checks.rb'].freeze
Instance Method Summary collapse
- #enabled_checks ⇒ Object private
-
#initialize(config:) ⇒ Loader
constructor
private
A new instance of Loader.
- #run ⇒ Object private
Constructor Details
#initialize(config:) ⇒ Loader
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Loader.
9 10 11 |
# File 'lib/nanoc/checking/loader.rb', line 9 def initialize(config:) @config = config end |
Instance Method Details
#enabled_checks ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 |
# File 'lib/nanoc/checking/loader.rb', line 17 def enabled_checks (enabled_checks_from_dsl + enabled_checks_from_config).uniq end |
#run ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 |
# File 'lib/nanoc/checking/loader.rb', line 13 def run dsl end |