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/xml-stylesheet.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/xml-stylesheet.rb')
-rw-r--r-- | lib/rss/xml-stylesheet.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rss/xml-stylesheet.rb b/lib/rss/xml-stylesheet.rb index 05602eee9b..66e3161dd0 100644 --- a/lib/rss/xml-stylesheet.rb +++ b/lib/rss/xml-stylesheet.rb @@ -37,13 +37,13 @@ module RSS def initialize(*attrs) @do_validate = true ATTRIBUTES.each do |attr| - self.send("#{attr}=", nil) + __send__("#{attr}=", nil) end vars = ATTRIBUTES.dup vars.unshift(:do_validate) attrs.each do |name, value| if vars.include?(name.to_s) - self.send("#{name}=", value) + __send__("#{name}=", value) end end end @@ -53,8 +53,8 @@ module RSS if @href rv << %Q[<?xml-stylesheet] ATTRIBUTES.each do |name| - if self.send(name) - rv << %Q[ #{name}="#{h self.send(name)}"] + if __send__(name) + rv << %Q[ #{name}="#{h __send__(name)}"] end end rv << %Q[?>] |