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, #convert_string, #end_accepting, #gen_url, #handle_RDOCLINK, #handle_regexp_HARD_BREAK, #handle_regexp_HYPERLINK, #handle_regexp_RDOCLINK, #handle_regexp_TIDYLINK, #html_list_name, #init_link_notation_regexp_handlings, #init_regexp_handlings, #init_tags, #list_end_for, #list_item_start, #parseable?, #start_accepting, #to_html

Methods included from Text

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

Methods inherited from Formatter

#accept_document, #add_regexp_handling_RDOCLINK, #add_regexp_handling_TIDYLINK, #add_tag, #annotate, #convert, #convert_flow, #convert_regexp_handling, #convert_string, #each_attr_tag, gen_relative_url, #ignore, #in_tt?, #off_tags, #on_tags, #parse_url, #tt?, #tt_tag?

Constructor Details

#initialize(options, from_path = nil) ⇒ LinkLabelToHtml

Returns a new instance of LinkLabelToHtml.



602
603
604
605
606
# File 'lib/rdoc/markup/to_html.rb', line 602

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



598
599
600
# File 'lib/rdoc/markup/to_html.rb', line 598

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