From 3041fdae15bf58d5035bc52c42f7255fcb830622 Mon Sep 17 00:00:00 2001 From: kou Date: Fri, 25 Nov 2005 03:54:29 +0000 Subject: * 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: http://svn.ruby-lang.org/repos/ruby/trunk@9611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rss/rss.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/rss/rss.rb') diff --git a/lib/rss/rss.rb b/lib/rss/rss.rb index 589478665..f424f1617 100644 --- a/lib/rss/rss.rb +++ b/lib/rss/rss.rb @@ -52,6 +52,14 @@ class Hash end end +module Kernel + unless methods.include?("funcall") + def funcall(*args, &block) + __send__(*args, &block) + end + end +end + require "English" require "rss/utils" require "rss/converter" -- cgit