No recent searches
LCSDiff
Object
Thor
Actions
CapturableERB
ClassMethods
CreateFile
CreateLink
Directory
EmptyDirectory
InjectIntoFile
AmbiguousCommandError
AmbiguousTaskError
Argument
Arguments
AtLeastOneRequiredArgumentError
Base
Command
CoreExt
HashWithIndifferentAccess
DynamicCommand
DynamicTask
Error
ExclusiveArgumentError
Group
HiddenCommand
HiddenTask
Invocation
InvocationError
LineEditor
Basic
Readline
PathCompletion
MalformattedArgumentError
NestedContext
Option
Options
RakeCompat
RequiredArgumentMissingError
Runner
Sandbox
Shell
Color
ColumnPrinter
HTML
TablePrinter
Terminal
WrappedPrinter
Task
UndefinedCommandError
SpellChecker
UndefinedTaskError
UnknownArgumentError
Util
# 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