Instance Methods
lib/rss/maker/base.rb
View on GitHub
# File tmp/rubies/ruby-2.5.9/lib/rss/maker/base.rb, line 900
def inline_html?
@type == "html"
end
No documentation available
lib/rss/maker/base.rb
View on GitHub
# File tmp/rubies/ruby-2.5.9/lib/rss/maker/base.rb, line 908
def inline_other?
!out_of_line? and ![nil, "text", "html", "xhtml"].include?(@type)
end
No documentation available
lib/rss/maker/base.rb
View on GitHub
# File tmp/rubies/ruby-2.5.9/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
No documentation available
lib/rss/maker/base.rb
View on GitHub
# File tmp/rubies/ruby-2.5.9/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
No documentation available
lib/rss/maker/base.rb
View on GitHub
# File tmp/rubies/ruby-2.5.9/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
No documentation available
lib/rss/maker/base.rb
View on GitHub
# File tmp/rubies/ruby-2.5.9/lib/rss/maker/base.rb, line 896
def inline_text?
[nil, "text", "html"].include?(@type)
end
No documentation available
lib/rss/maker/base.rb
View on GitHub
# File tmp/rubies/ruby-2.5.9/lib/rss/maker/base.rb, line 904
def inline_xhtml?
@type == "xhtml"
end
No documentation available
lib/rss/maker/base.rb
View on GitHub
# File tmp/rubies/ruby-2.5.9/lib/rss/maker/base.rb, line 927
def out_of_line?
not @src.nil? and @content.nil?
end
No documentation available
lib/rss/maker/base.rb
View on GitHub
# File tmp/rubies/ruby-2.5.9/lib/rss/maker/base.rb, line 888
def xml_content=(content)
content = ensure_xml_content(content) if inline_xhtml?
@xml_content = content
end
No documentation available