diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-17 00:49:38 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-17 00:49:38 +0000 |
commit | e85f8c782958c0a3e6ea296401a08d5fe9f8e550 (patch) | |
tree | 5d101a43288cc7927f58d31f06327a5b3262fcb6 /lib/rss/parser.rb | |
parent | d41bea59c44d97c3936ca806bf05e6221b66dce0 (diff) |
* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)
* lib/rss/: use #__send__ instead of #send.
* test/rss/: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/parser.rb')
-rw-r--r-- | lib/rss/parser.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rss/parser.rb b/lib/rss/parser.rb index 3904feb759..4b7000d81e 100644 --- a/lib/rss/parser.rb +++ b/lib/rss/parser.rb @@ -226,7 +226,7 @@ module RSS end end EOT - send("private", "start_#{name}") + __send__("private", "start_#{name}") end end @@ -285,7 +285,7 @@ module RSS @tag_stack.last.push([ns[prefix], local]) @tag_stack.push([]) if respond_to?("start_#{local}", true) - send("start_#{local}", local, prefix, attrs, ns.dup) + __send__("start_#{local}", local, prefix, attrs, ns.dup) else start_else_element(local, prefix, attrs, ns.dup) end @@ -358,7 +358,7 @@ module RSS setter = self.class.setter(required_uri, tag_name) setter ||= "#{tag_name}=" if @last_element.respond_to?(setter) - @last_element.send(setter, text.to_s) + @last_element.__send__(setter, text.to_s) else if @do_validate and not @ignore_unknown_element raise NotExceptedTagError.new(tag_name, @last_element.tag_name) @@ -405,7 +405,7 @@ module RSS end previous = @last_element - next_element = klass.send(:new, *args) + next_element = klass.__send__(:new, *args) next_element.do_validate = @do_validate previous.instance_eval {set_next_element(tag_name, next_element)} @last_element = next_element |