模块 RSS::Maker::AtomGenerator
公共实例方法
to_feed(feed, current) 点击切换源代码
# File rss-0.3.1/lib/rss/maker/atom.rb, line 129 def to_feed(feed, current) generator = current.class::Generator.new if setup_values(generator) current.generator = generator set_parent(generator, current) setup_other_elements(feed) elsif variable_is_set? 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 142 def required_variable_names %w(content) end