D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby27
/
share
/
gems
/
gems
/
bundler-2.2.24
/
lib
/
bundler
/
vendor
/
thor
/
lib
/
thor
/
Filename :
nested_context.rb
back
Copy
class Bundler::Thor class NestedContext def initialize @depth = 0 end def enter push yield ensure pop end def entered? @depth > 0 end private def push @depth += 1 end def pop @depth -= 1 end end end