aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rss/parser.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-23 09:49:02 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-23 09:49:02 +0000
commit73cd292fcd50f301180c536461001df2f3f9c7e9 (patch)
tree7c43d8cf9eb336b45ed84608ff254beca7fdc9e4 /lib/rss/parser.rb
parent4cfc20b20d70280c293927c9d4ccc008c4e00c8a (diff)
downloadruby-73cd292fcd50f301180c536461001df2f3f9c7e9.tar.gz
* lib/rss/: use #__send__ instead of #send.
* test/rss/: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/parser.rb')
-rw-r--r--lib/rss/parser.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rss/parser.rb b/lib/rss/parser.rb
index cf4368dced..a328146c4a 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.funcall(:set_next_element, tag_name, next_element)
@last_element = next_element