Method: Docter::ToCEntry#initialize

Defined in:
lib/docter/common.rb

#initialize(title, url = nil) ⇒ ToCEntry

:call-seq:

new(title, url)

URL links to the ToC entry, and must be a valid URL (use CGI.escape is necessary). The title must be HTML-encoded (use CGI.escapeHTML if necessary).



336
337
338
339
# File 'lib/docter/common.rb', line 336

def initialize(title, url = nil)
  super title
  @url = url
end