Sha256: 0d8df0dacd17e51c9e1078a85b7843b0b0f1335579503216989fd88dfd537c62
Contents?: true
Size: 369 Bytes
Versions: 14
Compression:
Stored size: 369 Bytes
Contents
require 'rexml/formatters/pretty' class REXML::Formatters::Pretty def wrap(string, width) return string if string.length <= width ret = "" while place = string.rindex(' ', width) string[place]="\n" ret += string[0,place] string = string[place+1..-1] end return ret + string end end
Version data entries
14 entries across 14 versions & 1 rubygems