class Asciidoctor::Document::Title

Public Parsed and stores a partitioned title (i.e., title & subtitle).

def initialize val, opts = {}

def initialize val, opts = {}
  # TODO separate sanitization by type (:cdata for HTML/XML, :plain_text for non-SGML, false for none)
  if (@sanitized = opts[:sanitize]) && val.include?('<')
    val = val.gsub(XmlSanitizeRx, '').squeeze(' ').strip
  end
  if (sep = opts[:separator] || ':').empty? || !val.include?(sep = %(#{sep} ))
    @main = val
    @subtitle = nil
  else
    @main, _, @subtitle = val.rpartition sep
  end
  @combined = val
end

def sanitized?

def sanitized?
  @sanitized
end

def subtitle?

def subtitle?
  @subtitle ? true : false
end

def to_s

def to_s
  @combined
end