Sha256: 2a33718b906c0e809daa1a2927881c86d079c187715e2e43de6fcfb5c1b2fe1a

Contents?: true

Size: 228 Bytes

Versions: 1

Compression:

Stored size: 228 Bytes

Contents

module Termtable
  class Header
    attr_reader :cells

    def initialize(header)
      @cells = header.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/header.rb