1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
kou 2006-06-17 00:49:38 +00:00
parent d41bea59c4
commit e85f8c7829
17 changed files with 111 additions and 99 deletions

View file

@ -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