Sha256: b4705876ffbe2c6afdf647b4e1c1e2e41a7f487450eb623e38156bef93868bb2
Contents?: true
Size: 341 Bytes
Versions: 14
Compression:
Stored size: 341 Bytes
Contents
class RakeCommander module Options module Description DESC_MAX_LENGTH = 80 private def string_to_lines(str, max: DESC_MAX_LENGTH) str.scan(liner_regex(max)).map(&:strip) end def liner_regex(len = DESC_MAX_LENGTH) /.{0,#{len}}[^ ](?:\s|$)/mi end end end end
Version data entries
14 entries across 14 versions & 1 rubygems