模块 RSS::Maker::AtomCategory

公共实例方法

to_feed(feed, current) 点击切换源代码
# File rss-0.3.1/lib/rss/maker/atom.rb, line 85
def to_feed(feed, current)
  category = feed.class::Category.new
  set = setup_values(category)
  if set
    current.categories << category
    set_parent(category, current)
    setup_other_elements(feed)
  else
    raise NotSetError.new(self.class.not_set_name,
                          not_set_required_variables)
  end
end

私有实例方法

required_variable_names() 点击切换源代码
# File rss-0.3.1/lib/rss/maker/atom.rb, line 99
def required_variable_names
  %w(term)
end
variables() 点击切换源代码
调用父类方法
# File rss-0.3.1/lib/rss/maker/atom.rb, line 103
def variables
  super + ["term", "scheme"]
end