Skip to content

Commit 56cd5b6

Browse files
committed
Chapter 14. Program logger
1 parent 8b5b322 commit 56cd5b6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
def log desc, &block
2-
# your code here
1+
def program_log desc, &block
2+
puts "Beginning \"#{desc}\"..."
3+
result = block.call
4+
puts "...\"#{desc}\" finished, returning: #{result}"
35
end

0 commit comments

Comments
 (0)