Class: RDoc::Markup::LinkLabelToHtml
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
|
|
|
Instance Chain:
|
|
| Inherits: |
RDoc::Markup::ToHtml
|
| 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
::RDoc::Text - Included
MARKUP_FORMAT, SPACE_SEPARATED_LETTER_CLASS, TO_HTML_CHARACTERS
ToHtml - Inherited
Utilities
Class Method Summary
ToHtml - Inherited
| .new | Creates a new formatter that will output HTML. |
Formatter - Inherited
| .gen_relative_url | Converts a target url to one that is relative to a given path. |
| .new | Creates a new |
Instance Attribute Summary
ToHtml - Inherited
| #code_object | The |
| #from_path | Path to this document for relative links. |
| #in_tidylink_label? | Returns true if we are processing inside a tidy link label. |
| #in_list_entry, #list, #res | |
::RDoc::Text - Included
| #language | The language for this text. |
Instance Method Summary
ToHtml - Inherited
| #accept_blank_line | Adds |
| #accept_block_quote | Adds |
| #accept_heading | Adds |
| #accept_list_end | Finishes consumption of |
| #accept_list_item_end | Finishes consumption of |
| #accept_list_item_start | Prepares the visitor for consuming |
| #accept_list_start | Prepares the visitor for consuming |
| #accept_paragraph | Adds |
| #accept_raw | Adds |
| #accept_rule | Adds |
| #accept_table | Adds |
| #accept_verbatim | Adds |
| #apply_tidylink_label_special_handling | Special handling for tidy link labels. |
| #convert_string | CGI-escapes |
| #deduplicate_heading_id | Returns a unique heading ID, appending -1, -2, etc. |
| #emit_inline, | |
| #end_accepting | Returns the generated output. |
| #gen_url | Generates an HTML link or image tag for the given |
| #handle_BOLD, #handle_BOLD_WORD, #handle_EM, #handle_EM_WORD, #handle_HARD_BREAK, #handle_PLAIN_TEXT, #handle_REGEXP_HANDLING_TEXT, | |
| #handle_regexp_HYPERLINK |
|
| #handle_regexp_RDOCLINK |
|
| #handle_regexp_SUPPRESSED_CROSSREF | Converts suppressed cross-reference |
| #handle_STRIKE, #handle_TIDYLINK, #handle_TT, | |
| #html_list_name | Determines the HTML list element for |
| #init_link_notation_regexp_handlings | Adds regexp handlings about link notations. |
| #init_regexp_handlings | Adds regexp handlings. |
| #list_end_for | Returns the HTML end-tag for |
| #list_item_start | Returns the HTML tag for |
| #parseable? | Returns true if text is valid ruby syntax. |
| #start_accepting | Prepares the visitor for HTML generation. |
| #to_html | Converts |
| #handle_inline, #handle_RDOCLINK | |
::RDoc::Text - Included
| #flush_left | Flush |
| #markup | Convert a string in markup format into HTML. |
| #normalize_comment | Strips hashes, expands tabs then flushes |
| #parse | Normalizes |
| #snippet | The first |
| #strip_hashes | Strips leading # characters from |
| #strip_newlines | Strips leading and trailing n characters from |
| #strip_stars | Strips /* */ style comments. |
| #to_html, | |
| #to_html_characters | Converts ampersand, dashes, ellipsis, quotes, copyright and registered trademark symbols in |
| #wrap | Wraps |
Formatter - Inherited
| #accept_document | Adds |
| #add_regexp_handling_RDOCLINK | Adds a regexp handling for links of the form rdoc-…: |
| #annotate | Allows |
| #apply_regexp_handling | Applies regexp handling to |
| #convert | Marks up |
| #convert_string | Converts a string to be fancier if desired. |
| #handle_BOLD | Called when processing bold nodes while traversing inline nodes from handle_inline. |
| #handle_BOLD_WORD | Called when processing bold word nodes while traversing inline nodes from handle_inline. |
| #handle_EM | Called when processing emphasis nodes while traversing inline nodes from handle_inline. |
| #handle_EM_WORD | Called when processing emphasis word nodes while traversing inline nodes from handle_inline. |
| #handle_HARD_BREAK | Called when processing a hard break while traversing inline nodes from handle_inline. |
| #handle_inline | Parses inline |
| #handle_PLAIN_TEXT | Called when processing plain text while traversing inline nodes from handle_inline. |
| #handle_REGEXP_HANDLING_TEXT | Called when processing regexp-handling-processed text while traversing inline nodes from handle_inline. |
| #handle_STRIKE | Called when processing strike nodes while traversing inline nodes from handle_inline. |
| #handle_TEXT | Called when processing text node while traversing inline nodes from handle_inline. |
| #handle_TIDYLINK | Called when processing tidylink nodes while traversing inline nodes from handle_inline. |
| #handle_TT | Called when processing tt nodes while traversing inline nodes from handle_inline. |
| #ignore | Use ignore in your subclass to ignore the content of a node. |
| #parse_url | Extracts and a scheme, url and an anchor id from |
| #traverse_inline_nodes | Traverses |
| #tt? | Is |
Constructor Details
.new(options, from_path = nil) ⇒ LinkLabelToHtml
# File 'lib/rdoc/markup/to_html.rb', line 599
def initialize(, from_path = nil) super() self.from_path = from_path if from_path end
Class Method Details
.render(label, options, from_path)
[ GitHub ]# File 'lib/rdoc/markup/to_html.rb', line 595
def self.render(label, , from_path) new(, from_path).to_html(label) end