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

* lib/rss: supported prety print.

* test/rss/test_1.0.rb: added test for calculating default indent size.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kou 2004-10-16 04:39:58 +00:00
parent 64422ae494
commit 0ebac90b0e
8 changed files with 210 additions and 154 deletions

View file

@ -286,8 +286,8 @@ module RSS
@proc_stack.push(nil)
else
parent = "ROOT ELEMENT???"
if current_class.const_defined?("TAG_NAME")
parent = current_class.const_get("TAG_NAME")
if current_class.tag_name
parent = current_class.tag_name
end
raise NotExceptedTagError.new(local, parent)
end