Methods
- A
- H
- I
- M
- N
- O
- X
Included Modules
Attributes
[W] | xml |
Instance Public methods
atom_validate(ignore_unknown_element, tags, uri)
Link
# File lib/rss/atom.rb, line 575 def atom_validate(ignore_unknown_element, tags, uri) if out_of_line? raise MissingAttributeError.new(tag_name, "type") if @type.nil? unless (content.nil? or content.empty?) raise NotAvailableValueError.new(tag_name, content) end elsif inline_xhtml? if @xml.nil? raise MissingTagError.new("div", tag_name) end unless @xml.name == "div" and @xml.uri == XHTML_URI raise NotExpectedTagError.new(@xml.name, @xml.uri, tag_name) end end end
have_xml_content?()
Link
inline_html?()
Link
inline_other?()
Link
inline_other_base64?()
Link
inline_other_text?()
Link
inline_other_xml?()
Link
# File lib/rss/atom.rb, line 620 def inline_other_xml? return false unless inline_other? media_type, subtype = mime_split normalized_mime_type = "#{media_type}/#{subtype}".downcase if /(?:\+xml|^xml)$/ =~ subtype or %w(text/xml-external-parsed-entity application/xml-external-parsed-entity application/xml-dtd).find {|x| x == normalized_mime_type} return true end false end
inline_text?()
Link
inline_xhtml?()
Link
mime_split()
Link
need_base64_encode?()
Link
out_of_line?()
Link
xhtml()
Link
xml()
Link
# File lib/rss/atom.rb, line 553 def xml return @xml unless inline_xhtml? return @xml if @xml.nil? if @xml.is_a?(XML::Element) and [@xml.name, @xml.uri] == ["div", XHTML_URI] return @xml end children = @xml children = [children] unless children.is_a?(Array) XML::Element.new("div", nil, XHTML_URI, {"xmlns" => XHTML_URI}, children) end
xml_getter()
Link