123456789_123456789_123456789_123456789_123456789_

Class: RSS::Maker::XMLStyleSheets::XMLStyleSheet

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 Method Details

#guess_type_if_need(xss) (private)

[ GitHub ]

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

def guess_type_if_need(xss)
  if @type.nil?
    xss.href = @href
    @type = xss.type
  end
end

#required_variable_names (private)

[ GitHub ]

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

def required_variable_names
  %w(href type)
end

#to_feed(feed)

[ GitHub ]

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

def to_feed(feed)
  xss = ::RSS::XMLStyleSheet.new
  guess_type_if_need(xss)
  set = setup_values(xss)
  if set
    feed.xml_stylesheets << xss
  end
end