module Termtable class Border def initialize(**opts) @columns = opts.delete(:columns) @style = opts.delete(:style) || '-' @corner = opts.delete(:corners) || '+' end def render @corner + @columns.map { |col| @style * col }.join(@corner) << @corner end end end