Class: Nanoc::Checking::Loader Private

Inherits:
Object
  • Object
show all
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

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_checksObject

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

#runObject

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