# File lib/rhc/core_ext.rb, line 116 def wrap(text) wrapped_text = [] lines = text.split(/\r?\n/) lines.each_with_index do |line, i| wrapped_text << wrap_line(i == lines.length - 1 ? line : line.rstrip) end return wrapped_text.join("\n") end