Sha256: 90dc916127937fe1bfd9e0670db31eaeda7dff7872b12954e39a8ad1f0c3987a
Contents?: true
Size: 448 Bytes
Versions: 4
Compression:
Stored size: 448 Bytes
Contents
class Pinglish class Check attr_reader :group attr_reader :name attr_reader :timeout def initialize(name, options = nil, &block) options ||= {} @group = options[:group] @name = name @timeout = options[:timeout] || 1 @block = block end # Call this check's behavior, returning the result of the block. def call(*args, &block) @block.call *args, &block end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
goodguide-pinglish-1.0.0 | lib/pinglish/check.rb |
pinglish-0.2.1 | lib/pinglish/check.rb |
pinglish-0.2.0 | lib/pinglish/check.rb |
pinglish-0.1.0 | lib/pinglish/check.rb |