| Class | RSS::Atom::Feed |
| In: |
lib/rss/atom.rb
lib/rss/dublincore/atom.rb |
| Parent: | RSS::Element |
| entries | -> | items |
# File lib/rss/atom.rb, line 234
234: def initialize(version=nil, encoding=nil, standalone=nil)
235: super("1.0", version, encoding, standalone)
236: @feed_type = "atom"
237: @feed_subtype = "feed"
238: end
# File lib/rss/atom.rb, line 242
242: def have_author?
243: authors.any? {|author| !author.to_s.empty?} or
244: entries.any? {|entry| entry.have_author?(false)}
245: end
# File lib/rss/atom.rb, line 248
248: def atom_validate(ignore_unknown_element, tags, uri)
249: unless have_author?
250: raise MissingTagError.new("author", tag_name)
251: end
252: validate_duplicate_links(links)
253: end
# File lib/rss/atom.rb, line 255
255: def have_required_elements?
256: super and have_author?
257: end
# File lib/rss/atom.rb, line 263
263: def setup_maker_element(channel)
264: prev_dc_dates = channel.dc_dates.to_a.dup
265: super
266: channel.about = id.content if id
267: channel.dc_dates.replace(prev_dc_dates)
268: end