类 RSS::Rss::Channel

常量

类别

私有实例方法

maker_target(maker) 点击切换源代码
# File rss-0.3.1/lib/rss/0.9.rb, line 137
def maker_target(maker)
  maker.channel
end
not_need_to_call_setup_maker_variables() 点击切换源代码
# File rss-0.3.1/lib/rss/0.9.rb, line 157
def not_need_to_call_setup_maker_variables
  %w(image textInput)
end
setup_maker_elements(channel) 点击切换源代码
调用父类方法
# File rss-0.3.1/lib/rss/0.9.rb, line 141
def setup_maker_elements(channel)
  super
  [
    [skipDays, "day"],
    [skipHours, "hour"],
  ].each do |skip, key|
    if skip
      skip.__send__("#{key}s").each do |val|
        target_skips = channel.__send__("skip#{key.capitalize}s")
        new_target = target_skips.__send__("new_#{key}")
        new_target.content = val.content
      end
    end
  end
end