Module: RSS::XMLStyleSheetMixin
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | lib/rss/xml-stylesheet.rb |
Instance Attribute Summary
Instance Method Summary
- #initialize(*args)
- #xml_stylesheet_pi private
Instance Attribute Details
#xml_stylesheets (rw)
[ GitHub ]# File 'lib/rss/xml-stylesheet.rb', line 8
attr_accessor :xml_stylesheets
Instance Method Details
#initialize(*args)
[ GitHub ]# File 'lib/rss/xml-stylesheet.rb', line 9
def initialize(*args) super @xml_stylesheets = [] end
#xml_stylesheet_pi (private)
[ GitHub ]# File 'lib/rss/xml-stylesheet.rb', line 15
def xml_stylesheet_pi xsss = @xml_stylesheets.collect do |xss| pi = xss.to_s pi = nil if /\A\s*\z/ =~ pi pi end.compact xsss.push("") unless xsss.empty? xsss.join("\n") end