summaryrefslogtreecommitdiffstats
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
commit11077baae97e7a03ce9db488c3ab7d59083466d4 (patch)
tree7c43d8cf9eb336b45ed84608ff254beca7fdc9e4 /lib/rss/parser.rb
parentb1f8c4eca042dd718d14c7150d8a9165e3c4b41e (diff)
downloadruby-11077baae97e7a03ce9db488c3ab7d59083466d4.tar.gz
ruby-11077baae97e7a03ce9db488c3ab7d59083466d4.tar.xz
ruby-11077baae97e7a03ce9db488c3ab7d59083466d4.zip
* lib/rss/: use #__send__ instead of #send.
* test/rss/: ditto. git-svn-id: http://svn.ruby-lang.org/repos/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 cf4368dce..a328146c4 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