diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-18 08:58:18 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-18 08:58:18 +0000 |
commit | eb8598146dcaa23230deceddff91e862e26d1b0f (patch) | |
tree | 2da1b55d258823ae845f45437f75bc949a7505d2 /lib/rss/0.9.rb | |
parent | b79b5815f02f74338dcf6d1e9d072564bec78c4f (diff) |
* lib/rss/rss.rb: RSS::Element#calc_indent became to be deprecated.
* lib/rss/0.9.rb: ditto.
* lib/rss/1.0.rb: ditto.
* lib/rss/image.rb: ditto.
* lib/rss/taxonomy.rb: ditto.
* lib/rss/trackback.rb: ditto.
* test/rss/test_1.0.rb: removed RSS::Element.indent_size tests.
* test/rss/test_2.0.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/0.9.rb')
-rw-r--r-- | lib/rss/0.9.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/rss/0.9.rb b/lib/rss/0.9.rb index cfd2596bcc..3b193c6762 100644 --- a/lib/rss/0.9.rb +++ b/lib/rss/0.9.rb @@ -59,7 +59,7 @@ module RSS end end - def to_s(need_convert=true, indent=calc_indent) + def to_s(need_convert=true, indent='') rv = tag(indent, ns_declarations) do |next_indent| [ channel_element(false, next_indent), @@ -153,7 +153,7 @@ module RSS super() end - def to_s(need_convert=true, indent=calc_indent) + def to_s(need_convert=true, indent='') rv = tag(indent) do |next_indent| [ title_element(false, next_indent), @@ -248,7 +248,7 @@ module RSS install_model(name, occurs) end - def to_s(need_convert=true, indent=calc_indent) + def to_s(need_convert=true, indent='') rv = tag(indent) do |next_indent| [ day_elements(false, next_indent) @@ -293,7 +293,7 @@ module RSS install_model(name, occurs) end - def to_s(need_convert=true, indent=calc_indent) + def to_s(need_convert=true, indent='') rv = tag(indent) do |next_indent| [ hour_elements(false, next_indent) @@ -355,7 +355,7 @@ module RSS self.description = description end - def to_s(need_convert=true, indent=calc_indent) + def to_s(need_convert=true, indent='') rv = tag(indent) do |next_indent| [ url_element(false, next_indent), @@ -408,7 +408,7 @@ module RSS self.protocol = protocol end - def to_s(need_convert=true, indent=calc_indent) + def to_s(need_convert=true, indent='') rv = tag(indent) rv = convert(rv) if need_convert rv @@ -452,7 +452,7 @@ module RSS install_model(tag, occurs) end - def to_s(need_convert=true, indent=calc_indent) + def to_s(need_convert=true, indent='') rv = tag(indent) do |next_indent| [ title_element(false, next_indent), @@ -561,7 +561,7 @@ module RSS self.type = type end - def to_s(need_convert=true, indent=calc_indent) + def to_s(need_convert=true, indent='') rv = tag(indent) rv = convert(rv) if need_convert rv @@ -642,7 +642,7 @@ module RSS self.link = link end - def to_s(need_convert=true, indent=calc_indent) + def to_s(need_convert=true, indent='') rv = tag(indent) do |next_indent| [ title_element(false, next_indent), |