Object
# File bundler/vendor/thor/lib/thor/nested_context.rb, line 3 def initialize @depth = 0 end
# File bundler/vendor/thor/lib/thor/nested_context.rb, line 7 def enter push yield ensure pop end
# File bundler/vendor/thor/lib/thor/nested_context.rb, line 15 def entered? @depth > 0 end
This page was generated for Ruby 2.7.4
Ruby-doc.org is provided by James Britt and Neurogami. Hack your world. Feed your head. Live curious.
Generated with Ruby-doc Rdoc Generator 0.42.0.