module YARD::Templates::Helpers::TextHelper
def wrap(text, col = 72)
-
(String)
- wraps text at +col+ columns.
def wrap(text, col = 72) text.gsub(/(.{1,#{col}})( +|$\n?)|(.{1,#{col}})/, "\\1\\3\n") end
(String)
- wraps text at +col+ columns.
def wrap(text, col = 72) text.gsub(/(.{1,#{col}})( +|$\n?)|(.{1,#{col}})/, "\\1\\3\n") end