Class: WhatsupGithub::Table
- Inherits:
-
Object
- Object
- WhatsupGithub::Table
- Defined in:
- lib/whatsup_github/table.rb
Overview
Table containing Rows
Instance Method Summary collapse
-
#generate_output_from(content) ⇒ Object
def initialize(since) @collector = RowCollector.new(since: since) end.
Instance Method Details
#generate_output_from(content) ⇒ Object
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 |