Class: RSS::Maker::XMLStyleSheets
- Inherits:
-
Object
- Object
- RSS::Maker::XMLStyleSheets
- Includes:
- Base
- Defined in:
- lib/rss/maker/base.rb
Defined Under Namespace
Classes: XMLStyleSheet
Instance Method Summary collapse
Methods included from Base
append_features, #have_required_values?, #initialize
Instance Method Details
#new_xml_stylesheet ⇒ Object
207 208 209 210 211 212 213 214 215 |
# File 'lib/rss/maker/base.rb', line 207 def new_xml_stylesheet xss = XMLStyleSheet.new(@maker) @xml_stylesheets << xss if block_given? yield xss else xss end end |
#to_rss(rss) ⇒ Object
201 202 203 204 205 |
# File 'lib/rss/maker/base.rb', line 201 def to_rss(rss) @xml_stylesheets.each do |xss| xss.to_rss(rss) end end |