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
LIST_TYPE_TO_HTML, TIDY_LINK_SINGLE_WORD, TIDY_LINK_WITH_BRACES, TIDY_LINK_WITH_BRACES_TAIL, URL_CHARACTERS_REGEXP_STR
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. |
#tidy_link_capturing?, #in_list_entry, #list, #res |
::RDoc::Text
- Included
#language | The language for this text. |
Formatter
- Inherited
#in_tt? | Are we currently inside tt tags? |
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 |
#convert_string | CGI-escapes |
#end_accepting | Returns the generated output. |
#gen_url | Generate a link to |
#handle_regexp_HARD_BREAK |
|
#handle_regexp_HYPERLINK |
|
#handle_regexp_RDOCLINK |
|
#handle_regexp_TIDYLINK | This |
#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. |
#init_tags | Maps attributes to HTML tags. |
#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 |
#append_flow_fragment, #append_to_tidy_label, #convert_complete_tidy_link, #convert_flow, #emit_tidy_link_fragment, #extract_tidy_link_parts, #finish_tidy_link, #off_tags, #on_tags, #render_tidy_link_label, #start_tidy_link, #handle_RDOCLINK |
::RDoc::Text
- Included
#expand_tabs | Expands tab characters in |
#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 | 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-…: |
#add_regexp_handling_TIDYLINK | Adds a regexp handling for links of the form |
#add_tag | Add a new set of tags for an attribute. |
#annotate | Allows |
#convert | Marks up |
#convert_flow | Converts flow items |
#convert_regexp_handling | Converts added regexp handlings. |
#convert_string | Converts a string to be fancier if desired. |
#each_attr_tag, | |
#ignore | Use ignore in your subclass to ignore the content of a node. |
#off_tags | Turns off tags for |
#on_tags | Turns on tags for |
#parse_url | Extracts and a scheme, url and an anchor id from |
#tt? | Is |
#tt_tag? |
Constructor Details
.new(options, from_path = nil) ⇒ LinkLabelToHtml
# File 'lib/rdoc/markup/to_html.rb', line 602
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 598
def self.render(label, , from_path) new(, from_path).to_html(label) end