lib/arborist/monitor.rb in arborist-0.0.1.pre20160606141735 vs lib/arborist/monitor.rb in arborist-0.0.1.pre20160829140603

- old
+ new

@@ -212,9 +212,21 @@ ## # The path to the source this Monitor was loaded from, if applicable attr_accessor :source + ### Return a string representation of the object suitable for debugging. + def inspect + return "#<%p:%#x %s (every %ds ±%ds)>" % [ + self.class, + self.object_id * 2, + self.description || "(no description)", + @interval, + @splay, + ] + end + + ### Run the monitor def run( nodes ) if self.exec_block return self.exec_block.call( nodes ) elsif self.exec_command