# File lib/thor/nested_context.rb, line 3 def initialize @depth = 0 end
# File lib/thor/nested_context.rb, line 7 def enter push yield ensure pop end
# File lib/thor/nested_context.rb, line 15 def entered? @depth.positive? end
# File lib/thor/nested_context.rb, line 25 def pop @depth -= 1 end
# File lib/thor/nested_context.rb, line 21 def push @depth += 1 end