module YARD::Templates::Engine
def set_default_options(options = {})
-
(void)
-
Options Hash:
(**options)
-
:template
(Symbol
) -- the default template -
:type
(Symbol
) -- the :object's type, if provided -
:format
(Symbol
) -- the default format
Parameters:
-
options
(Hash
) -- the options hash
def set_default_options(options = {}) if options.is_a?(Hash) options = TemplateOptions.new.tap do |o| o.reset_defaults o.update(options) end end options.type ||= options.object.type if options.object options end