Class: HTTPDisk::Grep::TersePrinter

Inherits:
Printer
  • Object
show all
Defined in:
lib/httpdisk/grep/printer.rb

Overview

each match as path:match

Constant Summary

Constants inherited from Printer

Printer::GREP_COLOR

Instance Attribute Summary

Attributes inherited from Printer

#output

Instance Method Summary collapse

Methods inherited from Printer

#initialize

Constructor Details

This class inherits a constructor from HTTPDisk::Grep::Printer

Instance Method Details



92
93
94
95
96
97
# File 'lib/httpdisk/grep/printer.rb', line 92

def print(path, _payload, all_matches)
  all_matches.each do
    output.write("#{path}:")
    print_matches(_1)
  end
end