1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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.
* lib/rss/trackback.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kou 2005-02-02 13:04:32 +00:00
parent 296f79bef5
commit 4af65e86a8
6 changed files with 88 additions and 66 deletions

View file

@ -146,9 +146,9 @@ module RSS
tag_name_with_prefix(TRACKBACK_PREFIX)
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
@ -194,9 +194,9 @@ module RSS
tag_name_with_prefix(TRACKBACK_PREFIX)
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