nested_context.rb
| 299 B | Satir:
0
| rb
Geri
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
Kaydet
Ctrl+S ile kaydet