lib/rgot.rb in rgot-0.0.5 vs lib/rgot.rb in rgot-0.1.0
- old
+ new
@@ -32,10 +32,18 @@
def now
Time.now
end
end
- def benchmark(opts={}, &block)
+ def benchmark(opts_hash={}, &block)
+ opts = B::Options.new
+ opts_hash.each do |k, v|
+ opts[k] = v
+ end
B.new(nil, nil, opts).run(&block)
+ end
+
+ def verbose?
+ @chatty
end
end
end