Class: Fettle::Checker
- Inherits:
-
Object
- Object
- Fettle::Checker
- Defined in:
- lib/fettle/checker.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(tag) ⇒ Checker
constructor
A new instance of Checker.
- #run ⇒ Object
Constructor Details
#initialize(tag) ⇒ Checker
Returns a new instance of Checker.
10 11 12 |
# File 'lib/fettle/checker.rb', line 10 def initialize(tag) @tag = tag end |
Class Method Details
.run(tag: nil) ⇒ Object
14 15 16 |
# File 'lib/fettle/checker.rb', line 14 def self.run(tag: nil) new(tag).run end |
Instance Method Details
#run ⇒ Object
18 19 20 21 22 |
# File 'lib/fettle/checker.rb', line 18 def run check_result_class.new( checks.map(&method(:run_check)).all? ) end |