summaryrefslogtreecommitdiffstats
path: root/lib/rss/rss.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
commit3041fdae15bf58d5035bc52c42f7255fcb830622 (patch)
treefa2ac64a12c7374e4fd0949b8aa6084afcb1d6bc /lib/rss/rss.rb
parent02569404e41a4633aacfaed4d3a5369c8bae9c1b (diff)
downloadruby-3041fdae15bf58d5035bc52c42f7255fcb830622.tar.gz
ruby-3041fdae15bf58d5035bc52c42f7255fcb830622.tar.xz
ruby-3041fdae15bf58d5035bc52c42f7255fcb830622.zip
* 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
Diffstat (limited to 'lib/rss/rss.rb')
-rw-r--r--lib/rss/rss.rb8
1 files changed, 8 insertions, 0 deletions
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"