class Asciidoctor::Inline
Public: Methods for managing inline elements in AsciiDoc block
def alt
Public: Returns the converted alt text for this inline image.
def alt attr 'alt' end
def block?
def block? false end
def convert
def convert converter.convert self end
def initialize(parent, context, text = nil, opts = {})
def initialize(parent, context, text = nil, opts = {}) super(parent, context, opts) @node_name = %(inline_#{context}) @text = text @id = opts[:id] @type = opts[:type] @target = opts[:target] end
def inline?
def inline? true end
def reftext
For a reference node (:ref or :bibref), the text is the reftext (and the reftext attribute is not set).
def reftext (val = @text) ? (apply_reftext_subs val) : nil end
def reftext?
For a reference node (:ref or :bibref), the text is the reftext (and the reftext attribute is not set).
def reftext? @text && (@type == :ref || @type == :bibref) end
def xreftext xrefstyle = nil
Returns the [String] reftext to refer to this inline node or nothing if no
xrefstyle - Not currently used (default: nil).
calling the reftext method. Otherwise, returns nil.
Use the explicit reftext for this inline node, if specified, retrieved by
to this inline node.
Public: Generate cross reference text (xreftext) that can be used to refer
def xreftext xrefstyle = nil reftext end