Sha256: 49c674eeaab8737c6a03d9e2365ce38e77ffa507c8a2c9fbd0298bb2e5271375
Contents?: true
Size: 399 Bytes
Versions: 6
Compression:
Stored size: 399 Bytes
Contents
class FSSM::Monitor def initialize(options={}) @options = options @backend = FSSM::Backends::Default.new end def path(*args, &block) path = FSSM::Path.new(*args) if block && block.arity == 0 path.instance_eval(&block) elsif block && block.arity == 1 block.call(path) end @backend.add_path(path) path end def run @backend.run end end
Version data entries
6 entries across 6 versions & 2 rubygems