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

* 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
This commit is contained in:
kou 2005-11-23 09:49:02 +00:00
parent 4cfc20b20d
commit 73cd292fcd
17 changed files with 117 additions and 99 deletions

View file

@ -279,7 +279,7 @@ EOC
else
if @do_validate
begin
@#{name} = Time.send('#{type}', new_value)
@#{name} = Time.__send__('#{type}', new_value)
rescue ArgumentError
raise NotAvailableValueError.new('#{disp_name}', new_value)
end
@ -316,7 +316,7 @@ EOC
if args.empty?
@#{accessor_name}.first
else
@#{accessor_name}.send("[]", *args)
@#{accessor_name}[*args]
end
end
@ -328,7 +328,7 @@ EOC
if args.size == 1
@#{accessor_name}.push(args[0])
else
@#{accessor_name}.send("[]=", *args)
@#{accessor_name}.__send__("[]=", *args)
end
end
alias_method(:set_#{accessor_name}, :#{accessor_name}=)
@ -703,11 +703,11 @@ EOC
self.class::NSPOOL.each do |prefix, uri|
if tags.has_key?(uri) and !must_call_validators.has_key?(uri)
meth = "#{prefix}_validate"
send(meth, tags[uri]) if respond_to?(meth, true)
__send__(meth, tags[uri]) if respond_to?(meth, true)
end
end
must_call_validators.each do |uri, prefix|
send("#{prefix}_validate", tags[uri])
__send__("#{prefix}_validate", tags[uri])
end
end