method
to_rss
Ruby latest stable (v2_5_5)
-
0 notes -
Class: RSS::Maker::RSS10::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/1.0.rb, line 28 def to_rss(rss) set = false if @about channel = RDF::Channel.new(@about) set = setup_values(channel) if set channel.dc_dates.clear rss.channel = channel setup_items(rss) setup_image(rss) setup_textinput(rss) setup_other_elements(rss) end end if (!@about or !set) and variable_is_set? raise NotSetError.new("maker.channel", not_set_required_variables) end end