Sha256: 87f19eccd69dc8db3748cb3d2dc6c65643b35aaf953adbe4587518be6881d981

Contents?: true

Size: 330 Bytes

Versions: 1

Compression:

Stored size: 330 Bytes

Contents

require 'colorize'
module GrepPage
  class Formatter
    # Displays an array of cheats
    # TODO: Highlight search term
    def self.cheat_rows(cheats, search_term)
      cheats.map do |cheat|
        puts cheat[:description].colorize(:green)
        puts cheat[:command].colorize(:blue)
        puts
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grepg-0.0.3 lib/grepg/formatter.rb