class Thor::Shell::Basic
Public Instance Methods
print_wrapped(message, options = {})
click to toggle source
# File lib/terradactyl/cli.rb, line 7 def print_wrapped(message, options = {}) indent = (options[:indent] || 0).to_i if indent.zero? stdout.puts message else message.each_line do |message_line| stdout.print ' ' * indent stdout.puts message_line.chomp end end end