Class: JsDuck::Exporter::App

Inherits:
Full
  • Object
show all
Defined in:
lib/jsduck/exporter/app.rb

Overview

Exports data for Docs app.

Instance Method Summary collapse

Constructor Details

#initialize(relations, opts) ⇒ App

Returns a new instance of App.



10
11
12
13
# File 'lib/jsduck/exporter/app.rb', line 10

def initialize(relations, opts)
  super(relations, opts)
  @renderer = Renderer.new(opts)
end

Instance Method Details

#export(cls) ⇒ Object

Returns compacted class data hash which contains an additional :html field with full HTML to show on class overview page.



17
18
19
20
21
# File 'lib/jsduck/exporter/app.rb', line 17

def export(cls)
  data = super(cls)
  data[:html] = @renderer.render(data)
  return compact(data)
end