Class: JsDuck::Process::Importer
- Inherits:
-
Object
- Object
- JsDuck::Process::Importer
- Defined in:
- lib/jsduck/process/importer.rb
Overview
Reads in JSDuck exports of different versions of docs.
Instance Method Summary collapse
-
#import(versions) ⇒ Object
Reads in data for all versions, returning array of version/class-data pairs.
Instance Method Details
#import(versions) ⇒ Object
Reads in data for all versions, returning array of version/class-data pairs. We don’t use a hash to preserve the order of versions (from oldest to newest).
14 15 16 17 18 19 20 21 |
# File 'lib/jsduck/process/importer.rb', line 14 def import(versions) versions.map do |ver| { :version => ver[:version], :classes => ver[:path] ? read(ver) : current_version, } end end |