Class: Thor::Shell::Basic
- Inherits:
-
Object
- Object
- Thor::Shell::Basic
- Defined in:
- lib/patches/thor.rb
Instance Method Summary collapse
Instance Method Details
#print_wrapped(message, options = {}) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/patches/thor.rb', line 8 def print_wrapped(, = {}) indent = ([:indent] || 0).to_i if indent.zero? stdout.puts() else .each_line do || stdout.print(" " * indent) stdout.puts(.chomp) end end end |