Permalink
Browse files

Allow optional step() block

  • Loading branch information...
1 parent 1d29fc1 commit 41ce3bf667ec54f1211d44ee8e96524689ea0c0b @steveyen steveyen committed Sep 28, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 util.rb
View
@@ -62,6 +62,8 @@ def step(mesg, cmd=nil, elapsed=nil, work=nil, description=nil)
$work_prev = work
time(cmd) if cmd
+
+ yield if block_given?
end
def time(cmd)

0 comments on commit 41ce3bf

Please sign in to comment.