Constants
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
Instance Methods
2.3
View on GitHub
# File tmp/rubies/ruby-2.3.8/lib/rss/atom.rb, line 504
def atom_validate(ignore_unknown_element, tags, uri)
unless have_author?
raise MissingTagError.new("author", tag_name)
end
validate_duplicate_links(links)
end
No documentation available
2.3
View on GitHub
# File tmp/rubies/ruby-2.3.8/lib/rss/atom.rb, line 497
def have_author?(check_parent=true)
authors.any? {|author| !author.to_s.empty?} or
(check_parent and @parent and @parent.have_author?) or
(source and source.have_author?)
end
Returns whether any of the following are true
-
There are any authors in the feed
-
If the parent element has an author and the
check_parentparameter was given. -
There is a source element that has an author
2.3
View on GitHub
# File tmp/rubies/ruby-2.3.8/lib/rss/atom.rb, line 511
def have_required_elements?
super and have_author?
end
No documentation available
2.3
View on GitHub
# File tmp/rubies/ruby-2.3.8/lib/rss/atom.rb, line 515
def maker_target(items)
if items.respond_to?("items")
# For backward compatibility
items = items.items
end
items.new_item
end
No documentation available