Class: WhatsupGithub::Table

Inherits:
Object
  • Object
show all
Defined in:
lib/whatsup_github/table.rb

Overview

Table containing Rows

Instance Method Summary collapse

Instance Method Details

#generate_output_from(content) ⇒ Object

def initialize(since)

@collector = RowCollector.new(since: since)

end



12
13
14
15
16
# File 'lib/whatsup_github/table.rb', line 12

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