Class: JsDuck::BatchProcessor

Inherits:
Object
  • Object
show all
Includes:
Util::Singleton
Defined in:
lib/jsduck/batch_processor.rb

Overview

Processes the parsing results into Relations object.

Instance Method Summary collapse

Methods included from Util::Singleton

included

Instance Method Details

#process(parsed_files, opts) ⇒ Object

Processes array of Source::File objects from BatchParser and returns instance of Relations class.



28
29
30
31
32
33
# File 'lib/jsduck/batch_processor.rb', line 28

def process(parsed_files, opts)
  r = aggregate(parsed_files)
  r = pre_process(r, opts)
  r = to_class_objects(r, opts)
  return post_process(r, opts)
end