Sha256: 18c5badd1d6978e6229ee4b1bb02942dfb6da23e936e9131c1d031dba344810e

Contents?: true

Size: 430 Bytes

Versions: 6

Compression:

Stored size: 430 Bytes

Contents

# frozen_string_literal: true

require_relative 'row_collector'

module WhatsupGithub
  # Table containing Rows
  class Table
    # def initialize(since)
    #   @collector = RowCollector.new(since: since)
    # end

    def generate_output_from(content)
      content.collect do |object|
        "| #{object.description} | #{object.versions} | #{object.type} | #{object.date} |\n".tr_s(' ', ' ')
      end.join
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
whatsup_github-1.0.1 lib/whatsup_github/table.rb
whatsup_github-1.0.0 lib/whatsup_github/table.rb
whatsup_github-0.5.0 lib/whatsup_github/table.rb
whatsup_github-0.4.2 lib/whatsup_github/table.rb
whatsup_github-0.4.1 lib/whatsup_github/table.rb
whatsup_github-0.4.0 lib/whatsup_github/table.rb