Class: HTTPDisk::Grep::TersePrinter
- Defined in:
- lib/httpdisk/grep/printer.rb
Overview
each match as path:match
Constant Summary
Constants inherited from Printer
Instance Attribute Summary
Attributes inherited from Printer
Instance Method Summary collapse
Methods inherited from Printer
Constructor Details
This class inherits a constructor from HTTPDisk::Grep::Printer
Instance Method Details
#print(path, _payload, all_matches) ⇒ Object
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 |