Class: HTTPDisk::Grep::CountPrinter

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

Overview

path:count

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



52
53
54
# File 'lib/httpdisk/grep/printer.rb', line 52

def print(path, _payload, all_matches)
  output.puts "#{path}:#{all_matches.length}"
end