Class | RSS::Atom::Feed::Entry |
In: |
lib/rss/dublincore/atom.rb
lib/rss/atom.rb |
Parent: | Object |
Author | = | Feed::Author |
Category | = | Feed::Category |
Contributor | = | Feed::Contributor |
Id | = | Feed::Id |
Link | = | Feed::Link |
Rights | = | Feed::Rights |
Title | = | Feed::Title |
Updated | = | Feed::Updated |
# File lib/rss/atom.rb, line 412 412: def have_author?(check_parent=true) 413: authors.any? {|author| !author.to_s.empty?} or 414: (check_parent and @parent and @parent.have_author?) or 415: (source and source.have_author?) 416: end
# File lib/rss/atom.rb, line 419 419: def atom_validate(ignore_unknown_element, tags, uri) 420: unless have_author? 421: raise MissingTagError.new("author", tag_name) 422: end 423: validate_duplicate_links(links) 424: end
# File lib/rss/atom.rb, line 426 426: def have_required_elements? 427: super and have_author? 428: end