Parent

Methods

Class/Module Index [+]

Quicksearch

YARD::Templates::Helpers::Markup::RDocMarkup::RDocMarkup

Constants

MARKUP

Attributes

from_path[RW]

Public Class Methods

new(text) click to toggle source
# File lib/yard/templates/helpers/markup/rdoc_markup.rb, line 41
def initialize(text)
  @text = text

  @@formatter ||= RDocMarkupToHtml.new
  @@markup ||= MARKUP.new
  @@mutex ||= Mutex.new
end

Public Instance Methods

to_html() click to toggle source
# File lib/yard/templates/helpers/markup/rdoc_markup.rb, line 49
def to_html
  html = nil
  @@mutex.synchronize do
    @@formatter.from_path = from_path
    html = @@markup.convert(@text, @@formatter)
  end
  html = fix_dash_dash(html)
  html = fix_typewriter(html)
  html
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.