Method: YARD::Templates::Helpers::MarkupHelper#markup_provider

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

#markup_provider(type = options.markup) ⇒ Symbol

Gets the markup provider name 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:

  • (Symbol)

    the markup provider name (usually the gem name of the library)


159
160
161
# File 'lib/yard/templates/helpers/markup_helper.rb', line 159

def markup_provider(type = options.markup)
  MarkupHelper.markup_cache[type][:provider]
end