Class: C3D::Crawler
- Inherits:
-
Object
- Object
- C3D::Crawler
- Includes:
- Celluloid
- Defined in:
- lib/c3d/actors/crawler.rb
Instance Method Summary collapse
-
#initialize(contract) ⇒ Crawler
constructor
A new instance of Crawler.
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 |