class HTTPDisk::Grep::Printer

Constants

GREP_COLOR

Attributes

output[R]

Public Class Methods

new(output) click to toggle source
# File lib/httpdisk/grep/printer.rb, line 8
def initialize(output)
  @output = output
end

Public Instance Methods

print(path, payload, all_matches) click to toggle source

Protected Instance Methods

grep_color() click to toggle source

helpers for subclasses

# File lib/httpdisk/grep/printer.rb, line 20
def grep_color
  @grep_color ||= (ENV['GREP_COLOR'] || GREP_COLOR)
end
print_matches(matches) click to toggle source