Method: YARD::Templates::Template#initialize

Defined in:
lib/yard/templates/template.rb

#initialize(opts = TemplateOptions.new) ⇒ Object



186
187
188
189
190
191
192
193
194
195
196
# File 'lib/yard/templates/template.rb', line 186

def initialize(opts = TemplateOptions.new)
  opts_class = opts.class
  opts_class = TemplateOptions if opts_class == Hash
  @cache = {}
  @cache_filename = {}
  @sections = []
  @options = opts_class.new
  add_options(opts)
  Template.include_extra(self, options)
  init
end