Method: Boxen::Check.checks

Defined in:
lib/boxen/check.rb

.checks(config) ⇒ Object

A collection of preflight instances for ‘config`. An instance is created for every constant under `self` that’s also a subclass of ‘self`.



13
14
15
16
17
# File 'lib/boxen/check.rb', line 13

def self.checks(config)
  constants.map { |n| const_get n }.
    select { |c| c < self }.
    map { |c| c.new config }
end