Sha256: 698597a367ba219d0968f149de066b72ec97f4ac8482fe7f903a3aa6834f1cfc

Contents?: true

Size: 400 Bytes

Versions: 5

Compression:

Stored size: 400 Bytes

Contents

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

5 entries across 5 versions & 1 rubygems

Version Path
whatsup_github-0.3.1 lib/whatsup_github/table.rb
whatsup_github-0.3.0 lib/whatsup_github/table.rb
whatsup_github-0.2.0 lib/whatsup_github/table.rb
whatsup_github-0.1.1 lib/whatsup_github/table.rb
whatsup_github-0.0.1 lib/whatsup_github/table.rb