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