Method: Jdoc::Generator#initialize

Defined in:
lib/jdoc/generator.rb

#initialize(schema, html: false) ⇒ Generator

Returns a new instance of Generator.

Parameters:

  • schema (Hash)

    JSON Schema represented as a Hash

  • html (true, false) (defaults to: false)

    Pass true to render HTML docs



44
45
46
47
# File 'lib/jdoc/generator.rb', line 44

def initialize(schema, html: false)
  @raw_schema = schema
  @html = html
end