Method: JsDuck::Format::Doc#initialize

Defined in:
lib/jsduck/format/doc.rb

#initialize(relations = {}, opts = {}) ⇒ Doc

Creates a formatter configured with options originating from command line. For the actual effect of the options see Inline::* classes.



21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/jsduck/format/doc.rb', line 21

def initialize(relations={}, opts={})
  @relations = relations
  @opts = opts
  @subproperties = Format::Subproperties.new(self)
  @link_renderer = Inline::LinkRenderer.new(relations, opts)
  @inline_link = Inline::Link.new(@link_renderer)
  @auto_link = Inline::AutoLink.new(@link_renderer)
  @inline_img = Inline::Img.new(opts)
  @inline_video = Inline::Video.new(opts)
  @inline_example = Inline::Example.new(opts)
  @doc_context = {}
end