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