summaryrefslogtreecommitdiff
path: root/lib/rss/rss.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-17 00:49:38 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-17 00:49:38 +0000
commite85f8c782958c0a3e6ea296401a08d5fe9f8e550 (patch)
tree5d101a43288cc7927f58d31f06327a5b3262fcb6 /lib/rss/rss.rb
parentd41bea59c44d97c3936ca806bf05e6221b66dce0 (diff)
* 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
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 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