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 868
868:           def inline_html?
869:             @type == "html"
870:           end

[Source]

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

[Source]

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

[Source]

     # File lib/rss/maker/base.rb, line 880
880:           def inline_other_text?
881:             return false if @type.nil? or out_of_line?
882:             /\Atext\//i.match(@type) ? true : false
883:           end

[Source]

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

[Source]

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

[Source]

     # File lib/rss/maker/base.rb, line 872
872:           def inline_xhtml?
873:             @type == "xhtml"
874:           end

[Source]

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

Alias for xml_content=

[Source]

     # File lib/rss/maker/base.rb, line 856
856:           def xml_content=(content)
857:             content = ensure_xml_content(content) if inline_xhtml?
858:             @xml_content = content
859:           end

[Validate]