Method: YARD::Templates::Helpers::MarkupHelper#markup_class

Defined in:
lib/yard/templates/helpers/markup_helper.rb

#markup_class(type = options.markup) ⇒ Class

Gets the markup provider class/module constant for a markup type Call #load_markup_provider before using this method.

Parameters:

  • type (Symbol) (defaults to: options.markup)

    the markup type (:rdoc, :markdown, etc.)

Returns:

  • (Class)

    the markup class


149
150
151
152
# File 'lib/yard/templates/helpers/markup_helper.rb', line 149

def markup_class(type = options.markup)
  load_markup_provider(type)
  MarkupHelper.markup_cache[type][:class]
end