class Asciidoctor::Inline

def reftext?

(see AbstractNode#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