diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-02 13:00:31 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-02 13:00:31 +0000 |
commit | f58288169d466ab2f44e10b462206193e072a506 (patch) | |
tree | 275abf275db1fe9fba4cbedad8bfdad39051588d /lib/rss/0.9.rb | |
parent | 6426951e554bde8b8c8ed85a1fdd0509b55d8fff (diff) | |
download | ruby-f58288169d466ab2f44e10b462206193e072a506.tar.gz ruby-f58288169d466ab2f44e10b462206193e072a506.tar.xz ruby-f58288169d466ab2f44e10b462206193e072a506.zip |
* lib/rss/rss.rb (RSS::Element#convert): added.
* lib/rss/rss.rb: convert -> need_convert.
* lib/rss/1.0.rb: ditto.
* lib/rss/0.9.rb: ditto.
* lib/rss/2.0.rb: ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/0.9.rb')
-rw-r--r-- | lib/rss/0.9.rb | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/lib/rss/0.9.rb b/lib/rss/0.9.rb index 797a46ca3..24560324e 100644 --- a/lib/rss/0.9.rb +++ b/lib/rss/0.9.rb @@ -59,14 +59,14 @@ module RSS end end - def to_s(convert=true, indent=calc_indent) + def to_s(need_convert=true, indent=calc_indent) rv = tag(indent, ns_declarations) do |next_indent| [ channel_element(false, next_indent), other_element(false, next_indent), ] end - rv = @converter.convert(rv) if convert and @converter + rv = convert(rv) if need_convert rv end @@ -142,7 +142,7 @@ module RSS super() end - def to_s(convert=true, indent=calc_indent) + def to_s(need_convert=true, indent=calc_indent) rv = tag(indent) do |next_indent| [ title_element(false, next_indent), @@ -165,7 +165,7 @@ module RSS other_element(false, next_indent), ] end - rv = @converter.convert(rv) if convert and @converter + rv = convert(rv) if need_convert rv end @@ -233,13 +233,13 @@ module RSS install_model(x, occurs) end - def to_s(convert=true, indent=calc_indent) + def to_s(need_convert=true, indent=calc_indent) rv = tag(indent) do |next_indent| [ day_elements(false, next_indent) ] end - rv = @converter.convert(rv) if convert and @converter + rv = convert(rv) if need_convert rv end @@ -278,13 +278,13 @@ module RSS install_model(x, occurs) end - def to_s(convert=true, indent=calc_indent) + def to_s(need_convert=true, indent=calc_indent) rv = tag(indent) do |next_indent| [ hour_elements(false, next_indent) ] end - rv = @converter.convert(rv) if convert and @converter + rv = convert(rv) if need_convert rv end @@ -331,7 +331,7 @@ module RSS install_model(x, "?") end - def to_s(convert=true, indent=calc_indent) + def to_s(need_convert=true, indent=calc_indent) rv = tag(indent) do |next_indent| [ url_element(false, next_indent), @@ -343,8 +343,8 @@ module RSS other_element(false, next_indent), ] end - rv = @converter.convert(rv) if convert and @converter - rv + rv = convert(rv) if need_convert + rv end private @@ -384,10 +384,10 @@ module RSS @protocol = protocol end - def to_s(convert=true, indent=calc_indent) + def to_s(need_convert=true, indent=calc_indent) rv = tag(indent) - rv = @converter.convert(rv) if convert and @converter - rv + rv = convert(rv) if need_convert + rv end private @@ -428,7 +428,7 @@ module RSS install_model(tag, occurs) end - def to_s(convert=true, indent=calc_indent) + def to_s(need_convert=true, indent=calc_indent) rv = tag(indent) do |next_indent| [ title_element(false, next_indent), @@ -440,8 +440,8 @@ module RSS other_element(false, next_indent), ] end - rv = @converter.convert(rv) if convert and @converter - rv + rv = convert(rv) if need_convert + rv end private @@ -533,9 +533,9 @@ module RSS @type = type end - def to_s(convert=true, indent=calc_indent) + def to_s(need_convert=true, indent=calc_indent) rv = tag(indent) - rv = @converter.convert(rv) if convert and @converter + rv = convert(rv) if need_convert rv end @@ -606,7 +606,7 @@ module RSS install_model(x, nil) end - def to_s(convert=true, indent=calc_indent) + def to_s(need_convert=true, indent=calc_indent) rv = tag(indent) do |next_indent| [ title_element(false, next_indent), @@ -616,8 +616,8 @@ module RSS other_element(false, next_indent), ] end - rv = @converter.convert(rv) if convert and @converter - rv + rv = convert(rv) if need_convert + rv end private |