method
to_rss
Ruby latest stable (v2_5_5)
-
0 notes -
Class: RSS::Maker::RSS09::Channel
- 1_8_6_287 (0)
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378
- 1_9_2_180
- 1_9_3_125
- 1_9_3_392
- 2_1_10
- 2_2_9
- 2_4_6
- 2_5_5
- 2_6_3
- What's this?
to_rss(rss)
public
Hide source
# File lib/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