Sha256: 6da222b803588dd2d0475eee9f4a964a5f2667e2df90fa34202634cfda798ae6
Contents?: true
Size: 365 Bytes
Versions: 4
Compression:
Stored size: 365 Bytes
Contents
module RakeCheck ## # Resultclass class Result def initialize @checks = [] end def each @checks.each do |checker| yield checker end end def success? @checks.all?(&:success?) end def failed? !success? end def run(checker) @checks << checker checker.run end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rake_check-0.4.2 | lib/rake_check/result.rb |
rake_check-0.4.1 | lib/rake_check/result.rb |
rake_check-0.4.0 | lib/rake_check/result.rb |
rake_check-0.3.6 | lib/rake_check/result.rb |