Class: C3D::Crawler

Inherits:
Object
  • Object
show all
Includes:
Celluloid
Defined in:
lib/c3d/actors/crawler.rb

Instance Method Summary collapse

Constructor Details

#initialize(contract) ⇒ Crawler

Returns a new instance of Crawler.



7
8
9
10
11
12
13
# File 'lib/c3d/actors/crawler.rb', line 7

def initialize contract
  puts "[C3D::#{Time.now.strftime( "%F %T" )}] Finding Peak of >>\t" + contract
  @parse = find_the_peak contract
  @purge = []
  puts "[C3D::#{Time.now.strftime( "%F %T" )}] Parsing Tree >>\t\t" + @parse
  C3D::TreeBuilder.new @parse, @purge
end