Class RSS::Maker::ItemsBase::ItemBase::ContentBase
In: lib/rss/maker/base.rb
Parent: Base

Methods

Included Modules

AtomTextConstructBase::EnsureXMLContent

External Aliases

xml_content -> xml

Public Instance methods

[Source]

     # File lib/rss/maker/base.rb, line 831
831:           def inline_html?
832:             @type == "html"
833:           end

[Source]

     # File lib/rss/maker/base.rb, line 839
839:           def inline_other?
840:             !out_of_line? and ![nil, "text", "html", "xhtml"].include?(@type)
841:           end

[Source]

     # File lib/rss/maker/base.rb, line 853
853:           def inline_other_base64?
854:             return false if @type.nil? or out_of_line?
855:             @type.include?("/") and !inline_other_text? and !inline_other_xml?
856:           end

[Source]

     # File lib/rss/maker/base.rb, line 843
843:           def inline_other_text?
844:             return false if @type.nil? or out_of_line?
845:             /\Atext\//i.match(@type) ? true : false
846:           end

[Source]

     # File lib/rss/maker/base.rb, line 848
848:           def inline_other_xml?
849:             return false if @type.nil? or out_of_line?
850:             /[\+\/]xml\z/i.match(@type) ? true : false
851:           end

[Source]

     # File lib/rss/maker/base.rb, line 827
827:           def inline_text?
828:             [nil, "text", "html"].include?(@type)
829:           end

[Source]

     # File lib/rss/maker/base.rb, line 835
835:           def inline_xhtml?
836:             @type == "xhtml"
837:           end

[Source]

     # File lib/rss/maker/base.rb, line 858
858:           def out_of_line?
859:             not @src.nil? and @content.nil?
860:           end
xml=(content)

Alias for xml_content=

[Source]

     # File lib/rss/maker/base.rb, line 819
819:           def xml_content=(content)
820:             content = ensure_xml_content(content) if inline_xhtml?
821:             @xml_content = content
822:           end

[Validate]