Sha256: da6a6dd540df75ed3a564fd76c560aa64ebe123997e21a6edb05d7ee48a9c4bc

Contents?: true

Size: 389 Bytes

Versions: 4

Compression:

Stored size: 389 Bytes

Contents

module Checker
  module Modules
    ## simple wrapper, to call every module
    class All
      def self.check
        checked = []
        constants = Utils.available_modules - ["all"]
        constants.each do |const|
          klass = "Checker::Modules::#{const.capitalize}".constantize
          checked << klass.check
        end
        checked.all_true?
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
checker-0.0.4 lib/checker/modules/all.rb
checker-0.0.3 lib/checker/modules/all.rb
checker-0.0.2 lib/checker/modules/all.rb
checker-0.0.1 lib/checker/modules/all.rb