Sha256: 21b9bc8b429b19c7da7e3a13714268dddd7436a7bc3b45dcd4ea5523e82e6497

Contents?: true

Size: 206 Bytes

Versions: 2

Compression:

Stored size: 206 Bytes

Contents

require "text-table"

class CliFormat::Presenter
  class Table < Base
    def text
      table = Text::Table.new
      table.head = @header if @header
      table.rows = @rows
      table
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cli-format-0.6.1 lib/cli_format/presenter/table.rb
cli-format-0.6.0 lib/cli_format/presenter/table.rb