def _word_wrap(text, prefix_str)
      if PrettyIO.wrap
        return prefix_str + text if PrettyIO.wrap_char_limit <= 0
        limit = PrettyIO.wrap_char_limit - prefix_str.length
        text.split("\n").collect! do |line|
          line.length > limit ? text.gsub(/(.{1,#{ limit }})(\s+|$)/, "#{ prefix_str }\\1\n").strip : prefix_str + line
        end * "\n"
      else
        prefix_str + text
      end
    end
def _word_wrap(text, prefix_str)
      if PrettyIO.wrap
        return prefix_str + text if PrettyIO.wrap_char_limit <= 0
        limit = PrettyIO.wrap_char_limit - prefix_str.length
        text.split("\n").collect! do |line|
          line.length > limit ? text.gsub(/(.{1,#{ limit }})(\s+|$)/, "#{ prefix_str }\\1\n").strip : prefix_str + line
        end * "\n"
      else
        prefix_str + text
      end
    end
Outputs a wrapped string (where each line is limited
 to a certain number of characters).
 @param [String] text The text to wrap
 @param [String] prefix_str The prefix for each line
 @return [String]