class YARD::Templates::TemplateOptions
@see CLI::YardocOptions
options specific to generation of HTML output, see {CLI::YardocOptions}.
An Options class containing default options for base template rendering. For
def embed_mixins_match?(mixin)
-
(nil)- if the mixin is not a module object -
(Boolean)- whether a mixin matches the embed_mixins list
Parameters:
-
mixin(CodeObjects::Base) -- accepts any code object, but returns
def embed_mixins_match?(mixin) return true if mixin == object # the method is not inherited return nil unless mixin.is_a?(CodeObjects::ModuleObject) embed_mixins.any? do |embed_mixin| re = /\A#{Regexp.quote(embed_mixin).gsub('\*', '.*')}\Z/ matchstr = embed_mixin.include?("::") ? mixin.path : mixin.name re.match(matchstr.to_s) end end
def no_highlight; !highlight end
def no_highlight; !highlight end
def no_highlight=(value) self.highlight = !value end
def no_highlight=(value) self.highlight = !value end