lib/diagnostics/methods.rb in diagnostics-0.0.2 vs lib/diagnostics/methods.rb in diagnostics-0.0.3
- old
+ new
@@ -10,11 +10,11 @@
def diagnostic_checks
Diagnostics.checks
end
- def diagnostic_check(name, &block)
- block ? Check.add(name, &block) : Check.find(name)
+ def diagnostic_check(name)
+ Check.find(name)
end
def diagnostic_message
case diagnostic_status
when :passed then DIAGNOSTIC_MESSAGES[:passed]
\ No newline at end of file