summaryrefslogtreecommitdiffstats
path: root/lib/rss/rss.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/rss.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/rss.rb')
-rw-r--r--lib/rss/rss.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/rss/rss.rb b/lib/rss/rss.rb
index 7acbef275..17e56d5a7 100644
--- a/lib/rss/rss.rb
+++ b/lib/rss/rss.rb
@@ -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