In Files

  • bundler/vendor/thor/lib/thor/nested_context.rb

Parent

Class/Module Index [+]

Quicksearch

Bundler::Thor::NestedContext

Public Class Methods

new() click to toggle source
 
               # File bundler/vendor/thor/lib/thor/nested_context.rb, line 3
def initialize
  @depth = 0
end
            

Public Instance Methods

enter() click to toggle source
 
               # File bundler/vendor/thor/lib/thor/nested_context.rb, line 7
def enter
  push

  yield
ensure
  pop
end
            
entered?() click to toggle source
 
               # File bundler/vendor/thor/lib/thor/nested_context.rb, line 15
def entered?
  @depth > 0
end