method
have_required_elements?
have_required_elements?()
protected
Hide source
# File lib/rss/rss.rb, line 952 def have_required_elements? self.class::MODELS.all? do |tag, uri, occurs, getter| if occurs.nil? or occurs == "+" child = __send__(getter) if child.is_a?(Array) children = child children.any? {|c| c.have_required_elements?} else not child.nil? end else true end end end