davetron5000/gli — pull request #98 by levinalex (2012-07-05 07:42:11+00:00)
Title: allow #around blocks to be nested

with this patch, when #around is called multiple times it will not overwrite the existing #around block. instead all around blocks are nested and called in the order in which they are defined.

around { |*args,code| puts 1; code.call; puts 4 }
around { |*args,code| puts 2; code call; puts 3 }

# will print:
# 1
# 2
# 3
# 4