Sha256: 35e236c39446cbc5e3daf9b63435e4bc365234a46107af7ea2e489f096e9fb93

Contents?: true

Size: 296 Bytes

Versions: 1

Compression:

Stored size: 296 Bytes

Contents

require 'colorize'
module GrepPage
  class Formatter
    # Displays an array of cheats
    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.2 lib/grepg/formatter.rb