class TabularText::Line

Public Class Methods

new() click to toggle source
# File lib/tabular-text/line.rb, line 3
def initialize
  @fields = []
end

Public Instance Methods

field(content, length = nil) click to toggle source
# File lib/tabular-text/line.rb, line 7
def field(content, length = nil)
  @fields << Field.new(content, length)
end
to_s() click to toggle source
# File lib/tabular-text/line.rb, line 11
def to_s
  @fields.join
end