diff options
| author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-17 00:49:38 +0000 |
|---|---|---|
| committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-17 00:49:38 +0000 |
| commit | 9dc733281997c4c6668dfd02561c0d9621988759 (patch) | |
| tree | 5d101a43288cc7927f58d31f06327a5b3262fcb6 /lib/rss/xml-stylesheet.rb | |
| parent | 31a4ef12b792af7e7959bc474fbf6b40d8c25c3d (diff) | |
| download | ruby-9dc733281997c4c6668dfd02561c0d9621988759.tar.gz ruby-9dc733281997c4c6668dfd02561c0d9621988759.tar.xz ruby-9dc733281997c4c6668dfd02561c0d9621988759.zip | |
* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)
* lib/rss/: use #__send__ instead of #send.
* test/rss/: ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10294 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 05602eee9..66e3161dd 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[?>] |
