123456789_123456789_123456789_123456789_123456789_

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

Instance Attribute Details

#xml_stylesheets (rw)

[ GitHub ]

  
# File 'lib/rss/xml-stylesheet.rb', line 7

attr_accessor :xml_stylesheets

Instance Method Details

#initialize(*args)

[ GitHub ]

  
# File 'lib/rss/xml-stylesheet.rb', line 8

def initialize(*args)
  super
  @xml_stylesheets = []
end

#xml_stylesheet_pi (private)

[ GitHub ]

  
# File 'lib/rss/xml-stylesheet.rb', line 14

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