Class: Killshot::Printer
- Inherits:
-
Object
- Object
- Killshot::Printer
- Defined in:
- lib/killshot.rb
Instance Method Summary collapse
- #finish ⇒ Object
-
#initialize ⇒ Printer
constructor
A new instance of Printer.
- #print(url, img) ⇒ Object
- #start ⇒ Object
Constructor Details
#initialize ⇒ Printer
Returns a new instance of Printer.
44 45 46 |
# File 'lib/killshot.rb', line 44 def initialize @count = 0 end |
Instance Method Details
#finish ⇒ Object
57 58 59 |
# File 'lib/killshot.rb', line 57 def finish puts "Done. Found #@count hotlinks." end |
#print(url, img) ⇒ Object
48 49 50 51 |
# File 'lib/killshot.rb', line 48 def print(url, img) @count = @count + 1 puts "#@count. #{img.red} from #{url.green}" end |
#start ⇒ Object
53 54 55 |
# File 'lib/killshot.rb', line 53 def start puts "Searching for hotlinks..." end |