diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-11-23 09:49:02 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-11-23 09:49:02 +0000 |
commit | 73cd292fcd50f301180c536461001df2f3f9c7e9 (patch) | |
tree | 7c43d8cf9eb336b45ed84608ff254beca7fdc9e4 /lib/rss/rss.rb | |
parent | 4cfc20b20d70280c293927c9d4ccc008c4e00c8a (diff) | |
download | ruby-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/rss.rb')
-rw-r--r-- | lib/rss/rss.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/rss/rss.rb b/lib/rss/rss.rb index 7acbef275d..17e56d5a7d 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 |