Method: Bundler::Thor::Shell::Basic#indent
- Defined in:
- lib/bundler/vendor/thor/lib/thor/shell/basic.rb
#indent(count = 1) ⇒ Object
Sets the output padding while executing a block and resets it.
43 44 45 46 47 48 |
# File 'lib/bundler/vendor/thor/lib/thor/shell/basic.rb', line 43 def indent(count = 1) orig_padding = padding self.padding = padding + count yield self.padding = orig_padding end |