Method: Asciidoctor::ListItem#text?

Defined in:
lib/asciidoctor/list.rb

#text?Boolean

A convenience method that checks whether the text of this list item is not blank (i.e., not nil or empty string).

Returns:

  • (Boolean)


68
69
70
# File 'lib/asciidoctor/list.rb', line 68

def text?
  @text.nil_or_empty? ? false : true
end