Sha256: d7ecbacaa437b7ae76e1d17191d3db466ac9f40c06f4ae91c3b27a1dc97f442e

Contents?: true

Size: 303 Bytes

Versions: 2

Compression:

Stored size: 303 Bytes

Contents

require 'rainbow'

module TinyNews

  class CLIPrinter

    def self.print feeds
      feeds.each do |feed_object|
        puts "\n#{feed_object.title.color(:blue)}:"
        feed_object.stories.each do |story|
          puts "-".color(:yellow) << " #{story}"
        end
      end
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tinynews-1.0.3 lib/tinynews/cli_printer.rb
tinynews-1.0.2 lib/tinynews/cli_printer.rb