diff options
| author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-16 04:39:58 +0000 |
|---|---|---|
| committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-16 04:39:58 +0000 |
| commit | b84c17591829c9f359fe806a9f57e9c99c662f9c (patch) | |
| tree | 4e0e2233ffd5cc0a5e1052471c41d5f3d3172d6e /lib/rss/parser.rb | |
| parent | 8c3ebed1d8584d9c8462d030500acd760b3c1d21 (diff) | |
| download | ruby-b84c17591829c9f359fe806a9f57e9c99c662f9c.tar.gz ruby-b84c17591829c9f359fe806a9f57e9c99c662f9c.tar.xz ruby-b84c17591829c9f359fe806a9f57e9c99c662f9c.zip | |
* lib/rss: supported prety print.
* test/rss/test_1.0.rb: added test for calculating default indent size.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/parser.rb')
| -rw-r--r-- | lib/rss/parser.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rss/parser.rb b/lib/rss/parser.rb index 1a8fdd493..9b9ff5917 100644 --- a/lib/rss/parser.rb +++ b/lib/rss/parser.rb @@ -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 |
