Class: Watobo::PassiveScanner::Engine
- Inherits:
-
Object
- Object
- Watobo::PassiveScanner::Engine
- Defined in:
- lib/watobo/core/passive_scanner.rb
Instance Method Summary collapse
-
#initialize ⇒ Engine
constructor
A new instance of Engine.
- #run ⇒ Object
Constructor Details
#initialize ⇒ Engine
Returns a new instance of Engine.
29 30 31 |
# File 'lib/watobo/core/passive_scanner.rb', line 29 def initialize @t = nil end |
Instance Method Details
#run ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/watobo/core/passive_scanner.rb', line 33 def run @t = Thread.new{ loop do chat = Watobo::PassiveScanner.pop unless chat.nil? Watobo::PassiveModules.each do |test_module| begin test_module.do_test(chat) rescue => bang puts bang puts bang.backtrace if $DEBUG return false end end end end } end |