Class: Steto::ProcReporter

Inherits:
Object
  • Object
show all
Defined in:
lib/steto/proc_reporter.rb

Instance Method Summary collapse

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