Class: HTTPDisk::Grep::Printer
- Inherits:
-
Object
- Object
- HTTPDisk::Grep::Printer
- Defined in:
- lib/httpdisk/grep/printer.rb
Direct Known Subclasses
Constant Summary collapse
- GREP_COLOR =
"37;45".freeze
Instance Attribute Summary collapse
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize(output) ⇒ Printer
constructor
A new instance of Printer.
- #print(path, payload, all_matches) ⇒ Object
Constructor Details
#initialize(output) ⇒ Printer
Returns a new instance of Printer.
8 9 10 |
# File 'lib/httpdisk/grep/printer.rb', line 8 def initialize(output) @output = output end |
Instance Attribute Details
#output ⇒ Object (readonly)
Returns the value of attribute output.
6 7 8 |
# File 'lib/httpdisk/grep/printer.rb', line 6 def output @output end |
Instance Method Details
#print(path, payload, all_matches) ⇒ Object
12 13 |
# File 'lib/httpdisk/grep/printer.rb', line 12 def print(path, payload, all_matches) end |