Sha256: 36bdfe9e2c97b528f3a6e0e23b00d8de255103dfaa96e1054b9c80d276ecfb0b
Contents?: true
Size: 434 Bytes
Versions: 7
Compression:
Stored size: 434 Bytes
Contents
module Checker class Result class << self def result(klass, exitstatus) debug klass debug exitstatus result_class(klass.classname).new(exitstatus) end def result_class(klass) "Checker::Results::#{klass}".constantize rescue NameError => e default_result_class end def default_result_class Checker::Results::Default end end end end
Version data entries
7 entries across 7 versions & 1 rubygems