Method: ArticleJSON::Elements::Paragraph#empty?
- Defined in:
- lib/article_json/elements/paragraph.rb
#empty? ⇒ Boolean
Return true if the paragraph has no elements
23 24 25 |
# File 'lib/article_json/elements/paragraph.rb', line 23 def empty? !content || content.empty? end |