class RSS::Maker::XMLStyleSheets::XMLStyleSheet

公共实例方法

to_feed(feed) 点击切换源码
# File rss-0.3.1/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

私有实例方法

guess_type_if_need(xss) 点击切换源码
# File rss-0.3.1/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() 点击切换源码
# File rss-0.3.1/lib/rss/maker/base.rb, line 486
def required_variable_names
  %w(href type)
end