lib/grepg/formatter.rb in grepg-0.0.2 vs lib/grepg/formatter.rb in grepg-0.0.3
- old
+ new
@@ -1,8 +1,9 @@
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