class TabularText::Builder

Public Class Methods

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

Public Instance Methods

line() { |line| ... } click to toggle source
# File lib/tabular-text/builder.rb, line 7
def line
  Line.new.tap do |line|
    @lines << line
    yield line
  end
end
render() click to toggle source
# File lib/tabular-text/builder.rb, line 14
def render
  @lines.join("\r\n")
end