# File rss/maker/base.rb, line 835
def inline_html?
@type == "html"
end
# File rss/maker/base.rb, line 843
def inline_other?
!out_of_line? and ![nil, "text", "html", "xhtml"].include?(@type)
end
# File rss/maker/base.rb, line 857
def inline_other_base64?
return false if @type.nil? or out_of_line?
@type.include?("/") and !inline_other_text? and !inline_other_xml?
end
# File rss/maker/base.rb, line 847
def inline_other_text?
return false if @type.nil? or out_of_line?
/\Atext\//.match(@type) ? true : false
end
# File rss/maker/base.rb, line 852
def inline_other_xml?
return false if @type.nil? or out_of_line?
/[\+\/]xml\z/.match(@type) ? true : false
end
# File rss/maker/base.rb, line 831
def inline_text?
[nil, "text", "html"].include?(@type)
end
# File rss/maker/base.rb, line 839
def inline_xhtml?
@type == "xhtml"
end
# File rss/maker/base.rb, line 862
def out_of_line?
not @src.nil? and @content.nil?
end
# File rss/maker/base.rb, line 823
def xml_content=(content)
content = ensure_xml_content(content) if inline_xhtml?
@xml_content = content
end
Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.
If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.
If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.
If you want to help improve the Ruby documentation, please see Improve the docs, or visit Documenting-ruby.org.