Class
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
No documentation available
No documentation available
No documentation available
No documentation available
Class Methods
lib/rss/atom.rb
View on GitHub
# File tmp/rubies/ruby-2.3.8/lib/rss/atom.rb, line 750
def initialize(version=nil, encoding=nil, standalone=nil)
super("1.0", version, encoding, standalone)
@feed_type = "atom"
@feed_subtype = "entry"
end
Instance Methods
lib/rss/atom.rb
View on GitHub
# File tmp/rubies/ruby-2.3.8/lib/rss/atom.rb, line 774
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
lib/rss/atom.rb
View on GitHub
# File tmp/rubies/ruby-2.3.8/lib/rss/atom.rb, line 768
def have_author?
authors.any? {|author| !author.to_s.empty?} or
(source and source.have_author?)
end
Returns where there are any authors present or there is a source with an author
lib/rss/atom.rb
View on GitHub
# File tmp/rubies/ruby-2.3.8/lib/rss/atom.rb, line 781
def have_required_elements?
super and have_author?
end
No documentation available
#
lib/rss/atom.rb
View on GitHub
# File tmp/rubies/ruby-2.3.8/lib/rss/atom.rb, line 757
def items
[self]
end
Returns the Entry
in an array
lib/rss/atom.rb
View on GitHub
# File tmp/rubies/ruby-2.3.8/lib/rss/atom.rb, line 785
def maker_target(maker)
maker.items.new_item
end
No documentation available
lib/rss/atom.rb
View on GitHub
# File tmp/rubies/ruby-2.3.8/lib/rss/atom.rb, line 762
def setup_maker(maker)
maker = maker.maker if maker.respond_to?("maker")
super(maker)
end
sets up the maker
for constructing Entry
elements