Class: RSS::Maker::ItemsBase::ItemBase::ContentBase
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
| Class Chain: | |
| Instance Chain: | |
| Inherits: | RSS::Maker::Base 
 | 
| Defined in: | lib/rss/maker/base.rb | 
Constant Summary
::RSS::Maker::Base - Inherited
Class Method Summary
::RSS::Maker::Base - Inherited
::RSS::Utils::InheritedReader - Extended
Instance Attribute Summary
- #inline_html? ⇒ Boolean readonly
- #inline_other? ⇒ Boolean readonly
- #inline_other_base64? ⇒ Boolean readonly
- #inline_other_text? ⇒ Boolean readonly
- #inline_other_xml? ⇒ Boolean readonly
- #inline_text? ⇒ Boolean readonly
- #inline_xhtml? ⇒ Boolean readonly
- #out_of_line? ⇒ Boolean readonly
- #xml_content=(content) (also: #xml=) writeonly
::RSS::Maker::AtomTextConstructBase::EnsureXMLContent - Included
::RSS::Maker::Base - Inherited
Instance Method Summary
- #xml writeonly
::RSS::Maker::AtomTextConstructBase::EnsureXMLContent - Included
::RSS::Maker::Base - Inherited
Constructor Details
This class inherits a constructor from RSS::Maker::Base
Instance Attribute Details
    #inline_html?  ⇒ Boolean  (readonly)
  
  [ GitHub ]
# File 'lib/rss/maker/base.rb', line 900
def inline_html? @type == "html" end
    #inline_other?  ⇒ Boolean  (readonly)
  
  [ GitHub ]
# File 'lib/rss/maker/base.rb', line 908
def inline_other? !out_of_line? and ![nil, "text", "html", "xhtml"].include?(@type) end
    #inline_other_base64?  ⇒ Boolean  (readonly)
  
  [ GitHub ]
# File 'lib/rss/maker/base.rb', line 922
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?  ⇒ Boolean  (readonly)
  
  [ GitHub ]
# File 'lib/rss/maker/base.rb', line 912
def inline_other_text? return false if @type.nil? or out_of_line? /\Atext\//i.match(@type) ? true : false end
    #inline_other_xml?  ⇒ Boolean  (readonly)
  
  [ GitHub ]
# File 'lib/rss/maker/base.rb', line 917
def inline_other_xml? return false if @type.nil? or out_of_line? /[\+\/]xml\z/i.match(@type) ? true : false end
    #inline_text?  ⇒ Boolean  (readonly)
  
  [ GitHub ]
# File 'lib/rss/maker/base.rb', line 896
def inline_text? [nil, "text", "html"].include?(@type) end
    #inline_xhtml?  ⇒ Boolean  (readonly)
  
  [ GitHub ]
# File 'lib/rss/maker/base.rb', line 904
def inline_xhtml? @type == "xhtml" end
    #out_of_line?  ⇒ Boolean  (readonly)
  
  [ GitHub ]
# File 'lib/rss/maker/base.rb', line 927
def out_of_line? not @src.nil? and @content.nil? end
#xml_content=(content) (writeonly) Also known as: #xml=
[ GitHub ]# File 'lib/rss/maker/base.rb', line 888
def xml_content=(content) content = ensure_xml_content(content) if inline_xhtml? @xml_content = content end
Instance Method Details
#xml (writeonly)
[ GitHub ]# File 'lib/rss/maker/base.rb', line 893
alias_method(:xml, :xml_content)