Class: RSS::Maker::RSS09::Channel::SkipDays

Inherits:
SkipDaysBase
  • Object
show all
Defined in:
lib/rss/maker/0.9.rb

Direct Known Subclasses

RSS::Maker::RSS20::Channel::SkipDays

Defined Under Namespace

Classes: Day

Instance Method Summary collapse

Instance Method Details

#to_feed(rss, channel) ⇒ Object



72
73
74
75
76
77
78
79
80
81
# File 'lib/rss/maker/0.9.rb', line 72

def to_feed(rss, channel)
  unless @days.empty?
    skipDays = Rss::Channel::SkipDays.new
    channel.skipDays = skipDays
    set_parent(skipDays, channel)
    @days.each do |day|
      day.to_feed(rss, skipDays.days)
    end
  end
end