summaryrefslogtreecommitdiff
path: root/lib/rss/parser.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-25 03:54:29 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-25 03:54:29 +0000
commit254670b3bc1143e6a71ea203dae8c31cf2908730 ()
treefa2ac64a12c7374e4fd0949b8aa6084afcb1d6bc /lib/rss/parser.rb
parent456ba712fe921f2387611055b67090d70dfad071 (diff)
* lib/rss/rss.rb: added backward compatibility codes.
* lib/rss/parser.rb: ditto. * test/rss/test_parser.rb: ditto. * test/rss/test_2.0.rb: ditto. * test/rss/test_content.rb: use #__send__ instead of #funcall for no private method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/rss/parser.rb16
1 files changed, 14 insertions, 2 deletions
@@ -1,5 +1,17 @@
require "forwardable"
-require "open-uri"
require "rss/rss"
@@ -414,7 +426,7 @@ module RSS
end
previous = @last_element
- next_element = klass.__send__(:new, *args)
next_element.do_validate = @do_validate
previous.funcall(:set_next_element, tag_name, next_element)
@last_element = next_element