Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2_2_9 ) is shown here.
new (options, characters = 100, paragraphs = 3, markup = nil)
public
Creates a new
ToHtmlSnippet formatter that will cut off the input on the next word
boundary after the given number of characters or
paragraphs of text have been encountered.
Show source # File lib/rdoc/markup/to_html_snippet.rb, line 36
def initialize options, characters = 100, paragraphs = 3, markup = nil
super options, markup
@character_limit = characters
@paragraph_limit = paragraphs
@characters = 0
@mask = 0
@paragraphs = 0
@markup.add_special RDoc::CrossReference::CROSSREF_REGEXP, :CROSSREF
end