Class: RSS::Maker::XMLStyleSheets::XMLStyleSheet
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
self,
::RSS::Maker::Base
|
|
Inherits: |
RSS::Maker::Base
|
Defined in: | lib/rss/maker/base.rb |
Constant Summary
::RSS::Maker::Base - Inherited
Class Method Summary
::RSS::Maker::Base - Inherited
::RSS::Utils::InheritedReader - Extended
Instance Attribute Summary
::RSS::Maker::Base - Inherited
Instance Method Summary
- #to_feed(feed)
- #guess_type_if_need(xss) private
- #required_variable_names private
::RSS::Maker::Base - Inherited
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 478
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 485
def required_variable_names %w(href type) end
#to_feed(feed)
[ GitHub ]# File 'lib/rss/maker/base.rb', line 468
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