Sha256: 2f49ff9d3e71b5df94b12de738d86e0a30cf31bcb7941f270684351c80e1835a
Contents?: true
Size: 666 Bytes
Versions: 4
Compression:
Stored size: 666 Bytes
Contents
require 'yaml' module WhatsupGithub # Table containing Rows class YAMLFormatter # def initialize(since) # @collector = RowCollector.new(since: since) # end def generate_output_from(content) entries = content.collect do |object| { 'description' => object.description, 'versions' => object.versions, 'type' => object.type, 'date' => object.date, 'link' => object.link } end output = { 'updated' => Time.now.strftime('%c').tr_s(' ', ' '), 'entries' => entries } output.to_yaml end end end
Version data entries
4 entries across 4 versions & 1 rubygems