Method: JsDuck::Format::HtmlStack#initialize

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

#initialize(ignore_html = {}, doc_context = {}) ⇒ HtmlStack

Initializes the stack with two optional parameters:

Parameters:

  • ignore_html (defaults to: {})

    A hash of additional HTML tags that don’t need closing.

  • doc_context (defaults to: {})

    Filename and linenr of the current doc-comment.



16
17
18
19
20
# File 'lib/jsduck/format/html_stack.rb', line 16

def initialize(ignore_html={}, doc_context={})
  @ignore_html = ignore_html
  @doc_context = doc_context
  @open_tags = []
end