Class: RDoc::Markup::LinkLabelToHtml

Inherits:
ToHtml show all
Defined in:
lib/rdoc/markup/to_html.rb

Overview

Formatter dedicated to rendering tidy link labels without mutating the calling formatter’s state.

Constant Summary

Constants inherited from ToHtml

ToHtml::LIST_TYPE_TO_HTML, ToHtml::URL_CHARACTERS_REGEXP_STR

Constants included from Text

Text::MARKUP_FORMAT, Text::SPACE_SEPARATED_LETTER_CLASS, Text::TO_HTML_CHARACTERS

Instance Attribute Summary

Attributes inherited from ToHtml

#code_object, #from_path, #in_list_entry, #list, #res

Attributes included from Text

#language

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ToHtml

#accept_blank_line, #accept_block_quote, #accept_heading, #accept_list_end, #accept_list_item_end, #accept_list_item_start, #accept_list_start, #accept_paragraph, #accept_raw, #accept_rule, #accept_table, #accept_verbatim, #apply_tidylink_label_special_handling, #convert_string, #deduplicate_heading_id, #emit_inline, #end_accepting, #gen_url, #handle_BOLD, #handle_BOLD_WORD, #handle_EM, #handle_EM_WORD, #handle_HARD_BREAK, #handle_PLAIN_TEXT, #handle_RDOCLINK, #handle_REGEXP_HANDLING_TEXT, #handle_STRIKE, #handle_TIDYLINK, #handle_TT, #handle_inline, #handle_regexp_HYPERLINK, #handle_regexp_RDOCLINK, #handle_regexp_SUPPRESSED_CROSSREF, #html_list_name, #in_tidylink_label?, #init_link_notation_regexp_handlings, #init_regexp_handlings, #list_end_for, #list_item_start, #parseable?, #start_accepting, #to_html

Methods included from Text

decode_legacy_label, encode_fallback, expand_tabs, #flush_left, #markup, #normalize_comment, #parse, #snippet, #strip_hashes, #strip_newlines, #strip_stars, to_anchor, #to_html, #to_html_characters, #wrap

Methods inherited from Formatter

#accept_document, #add_regexp_handling_RDOCLINK, #annotate, #apply_regexp_handling, #convert, #convert_string, gen_relative_url, #handle_BOLD, #handle_BOLD_WORD, #handle_EM, #handle_EM_WORD, #handle_HARD_BREAK, #handle_PLAIN_TEXT, #handle_REGEXP_HANDLING_TEXT, #handle_STRIKE, #handle_TEXT, #handle_TIDYLINK, #handle_TT, #handle_inline, #ignore, #parse_url, #traverse_inline_nodes, #tt?

Constructor Details

#initialize(options, from_path = nil) ⇒ LinkLabelToHtml

Returns a new instance of LinkLabelToHtml.



599
600
601
602
603
# File 'lib/rdoc/markup/to_html.rb', line 599

def initialize(options, from_path = nil)
  super(options)

  self.from_path = from_path if from_path
end

Class Method Details

.render(label, options, from_path) ⇒ Object



595
596
597
# File 'lib/rdoc/markup/to_html.rb', line 595

def self.render(label, options, from_path)
  new(options, from_path).to_html(label)
end