Sha256: ce5ecda73ac7e75d6cb804519b683ac7048b9a61650ccfcbfcfa60ec948ce04b

Contents?: true

Size: 219 Bytes

Versions: 1

Compression:

Stored size: 219 Bytes

Contents

module Termtable
  class Row
    attr_reader :cells

    def initialize(row)
      @cells = row.map { |value| Cell.new(value) }
    end

    def render
      '|' + cells.map(&:render).join('|') << '|'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
termtable-0.1.0 lib/termtable/row.rb