Method: Spider::Model::Sorter#initialize

Defined in:
lib/spiderfw/model/model.rb

#initialize(models, options = {}) ⇒ Sorter

Returns a new instance of Sorter.



392
393
394
395
396
397
398
399
# File 'lib/spiderfw/model/model.rb', line 392

def initialize(models, options={})
    @model_tasks = {}
    @processed_deps = {}
    @processed = {}
    @models = models
    @options = options
    @models.each{ |m| collect_dependencies(m) }
end