Extended maintenance of Ruby 1.9.3 ended on February 23, 2015. Read more

In Files

  • rss/maker/base.rb

Class/Module Index [+]

Quicksearch

RSS::Maker::ItemsBase::ItemBase::ContentBase

Public Instance Methods

inline_html?() click to toggle source
 
               # File rss/maker/base.rb, line 899
def inline_html?
  @type == "html"
end
            
inline_other?() click to toggle source
 
               # File rss/maker/base.rb, line 907
def inline_other?
  !out_of_line? and ![nil, "text", "html", "xhtml"].include?(@type)
end
            
inline_other_base64?() click to toggle source
 
               # File rss/maker/base.rb, line 921
def inline_other_base64?
  return false if @type.nil? or out_of_line?
  @type.include?("/") and !inline_other_text? and !inline_other_xml?
end
            
inline_other_text?() click to toggle source
 
               # File rss/maker/base.rb, line 911
def inline_other_text?
  return false if @type.nil? or out_of_line?
  /\Atext\//i.match(@type) ? true : false
end
            
inline_other_xml?() click to toggle source
 
               # File rss/maker/base.rb, line 916
def inline_other_xml?
  return false if @type.nil? or out_of_line?
  /[\+\/]xml\z/i.match(@type) ? true : false
end
            
inline_text?() click to toggle source
 
               # File rss/maker/base.rb, line 895
def inline_text?
  [nil, "text", "html"].include?(@type)
end
            
inline_xhtml?() click to toggle source
 
               # File rss/maker/base.rb, line 903
def inline_xhtml?
  @type == "xhtml"
end
            
out_of_line?() click to toggle source
 
               # File rss/maker/base.rb, line 926
def out_of_line?
  not @src.nil? and @content.nil?
end
            
xml=(content) click to toggle source
Alias for: xml_content=
xml_content=(content) click to toggle source
 
               # File rss/maker/base.rb, line 887
def xml_content=(content)
  content = ensure_xml_content(content) if inline_xhtml?
  @xml_content = content
end
            
Also aliased as: xml=

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 visit Documenting-ruby.org.