Sha256: ef9117ca64d44876718737acc1287d03119cec41ce34104779a9a667082b0df8
Contents?: true
Size: 219 Bytes
Versions: 3
Compression:
Stored size: 219 Bytes
Contents
module TabularText class Line def initialize @fields = [] end def field(content, length = nil) @fields << Field.new(content, length) end def to_s @fields.join end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tabular-text-0.1.0 | lib/tabular-text/line.rb |
tabular-text-0.0.2 | lib/tabular-text/line.rb |
tabular-text-0.0.1 | lib/tabular-text/line.rb |