Sha256: f51bd23fa71f9e638babb0af7cdba32a522de3cf14175c64e6e8af8730a4ac72
Contents?: true
Size: 342 Bytes
Versions: 1
Compression:
Stored size: 342 Bytes
Contents
module JarEd class BufferLine attr_reader :raw_text def initialize(raw_text) @raw_text = raw_text end def text @text ||= raw_text.chomp end def blank? text == "" end def wrap(width:) if blank? [""] else text.scan(/.{1,#{width}}/) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jareditor-3.0.0 | lib/jared/buffer_line.rb |