Sha256: fd4c1f9bd5fe50c88f44c18aa2f6064adf479b2e4bc39947c5917d6f5e3830ab
Contents?: true
Size: 377 Bytes
Versions: 1
Compression:
Stored size: 377 Bytes
Contents
require_relative 'check' module Remon class ProcCheck < Check attr_reader :name def initialize(name, pr) raise "no proc passed" if not pr.is_a?(Proc) @name = name @pr = pr @mutex = Mutex.new end def run instance_eval &@pr end def check_name @name end def to_s "<proc:#{@name}>" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
remon-0.1.0 | lib/remon/proc_check.rb |