Class: WhatsupGithub::Generator
- Inherits:
-
Object
- Object
- WhatsupGithub::Generator
- Defined in:
- lib/whatsup_github/generator.rb
Overview
Creates the final table
Instance Method Summary collapse
- #content ⇒ Object
-
#initialize(since) ⇒ Generator
constructor
A new instance of Generator.
- #run(formatter, content) ⇒ Object
Constructor Details
#initialize(since) ⇒ Generator
Returns a new instance of Generator.
6 7 8 |
# File 'lib/whatsup_github/generator.rb', line 6 def initialize(since) @collector = RowCollector.new(since: since) end |
Instance Method Details
#content ⇒ Object
10 11 12 |
# File 'lib/whatsup_github/generator.rb', line 10 def content @collector.sort_by_date end |
#run(formatter, content) ⇒ Object
14 15 16 |
# File 'lib/whatsup_github/generator.rb', line 14 def run(formatter, content) formatter.generate_output_from content end |