123456789_123456789_123456789_123456789_123456789_

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

NEED_INITIALIZE_VARIABLES, OTHER_ELEMENTS

Class Method Summary

Instance Attribute Summary

Instance Method Summary

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 899

def inline_html?
  @type == "html"
end

#inline_other?Boolean (readonly)

[ GitHub ]

  
# File 'lib/rss/maker/base.rb', line 907

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 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?Boolean (readonly)

[ GitHub ]

  
# File 'lib/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?Boolean (readonly)

[ GitHub ]

  
# File 'lib/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?Boolean (readonly)

[ GitHub ]

  
# File 'lib/rss/maker/base.rb', line 895

def inline_text?
  [nil, "text", "html"].include?(@type)
end

#inline_xhtml?Boolean (readonly)

[ GitHub ]

  
# File 'lib/rss/maker/base.rb', line 903

def inline_xhtml?
  @type == "xhtml"
end

#out_of_line?Boolean (readonly)

[ GitHub ]

  
# File 'lib/rss/maker/base.rb', line 926

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 887

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 892

alias_method(:xml, :xml_content)