Class: Thor::Shell::Basic
- Inherits:
-
Object
- Object
- Thor::Shell::Basic
- Defined in:
- lib/cpl.rb
Instance Method Summary collapse
Instance Method Details
#print_wrapped(message, options = {}) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/cpl.rb', line 27 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 |