aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rss/0.9.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-02 13:00:31 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-02 13:00:31 +0000
commitbd4fd26fda94d3a0d75a130a025ea5b7b85a4f55 (patch)
tree275abf275db1fe9fba4cbedad8bfdad39051588d /lib/rss/0.9.rb
parentab2b03033ad19b0c936cff6387700e46c3fac0be (diff)
downloadruby-bd4fd26fda94d3a0d75a130a025ea5b7b85a4f55.tar.gz
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@7863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/0.9.rb')
-rw-r--r--lib/rss/0.9.rb44
1 files changed, 22 insertions, 22 deletions
diff --git a/lib/rss/0.9.rb b/lib/rss/0.9.rb
index 797a46ca3b..24560324ed 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