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
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| actions | Folder | 0755 |
|
|
| core_ext | Folder | 0755 |
|
|
| line_editor | Folder | 0755 |
|
|
| parser | Folder | 0755 |
|
|
| shell | Folder | 0755 |
|
|
| actions.rb | File | 10.53 KB | 0644 |
|
| base.rb | File | 24.18 KB | 0644 |
|
| command.rb | File | 4.63 KB | 0644 |
|
| error.rb | File | 3.5 KB | 0644 |
|
| group.rb | File | 8.85 KB | 0644 |
|
| invocation.rb | File | 6.07 KB | 0644 |
|
| line_editor.rb | File | 391 B | 0644 |
|
| nested_context.rb | File | 299 B | 0644 |
|
| parser.rb | File | 138 B | 0644 |
|
| rake_compat.rb | File | 2.12 KB | 0644 |
|
| runner.rb | File | 9.85 KB | 0644 |
|
| shell.rb | File | 2.3 KB | 0644 |
|
| util.rb | File | 8.84 KB | 0644 |
|
| version.rb | File | 44 B | 0644 |
|