Class: Steto::ProcReporter
- Inherits:
-
Object
- Object
- Steto::ProcReporter
- Defined in:
- lib/steto/proc_reporter.rb
Instance Method Summary collapse
-
#initialize(&block) ⇒ ProcReporter
constructor
A new instance of ProcReporter.
- #report(checks) ⇒ Object
Constructor Details
#initialize(&block) ⇒ ProcReporter
Returns a new instance of ProcReporter.
3 4 5 |
# File 'lib/steto/proc_reporter.rb', line 3 def initialize(&block) @block = block end |
Instance Method Details
#report(checks) ⇒ Object
7 8 9 |
# File 'lib/steto/proc_reporter.rb', line 7 def report(checks) @block.call checks end |