ChannelBase
# File rss/maker/0.9.rb, line 44
def have_required_values?
@title and @link and @description and @language
end
# File rss/maker/0.9.rb, line 25
def to_rss(rss)
channel = Rss::Channel.new
set = setup_values(channel)
if set
rss.channel = channel
setup_items(rss)
setup_image(rss)
setup_textinput(rss)
setup_other_elements(rss)
if rss.channel.image
rss
else
nil
end
elsif variable_is_set?
raise NotSetError.new("maker.channel", not_set_required_variables)
end
end