Class: Killshot::Printer

Inherits:
Object
  • Object
show all
Defined in:
lib/killshot.rb

Instance Method Summary collapse

Constructor Details

#initializePrinter

Returns a new instance of Printer.



44
45
46
# File 'lib/killshot.rb', line 44

def initialize
  @count = 0 
end

Instance Method Details

#finishObject



57
58
59
# File 'lib/killshot.rb', line 57

def finish
  puts "Done. Found #@count hotlinks."
end


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

#startObject



53
54
55
# File 'lib/killshot.rb', line 53

def start
  puts "Searching for hotlinks..."
end