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:
parent
64422ae494
commit
0ebac90b0e
8 changed files with 210 additions and 154 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue