class Asciidoctor::ListItem

def text?

is not blank (i.e., not nil or empty string).
Public: A convenience method that checks whether the text of this list item
def text?
  @text.nil_or_empty? ? false : true
end