summaryrefslogtreecommitdiff
path: root/lib/rss/xml-stylesheet.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/xml-stylesheet.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/xml-stylesheet.rb')
-rw-r--r--lib/rss/xml-stylesheet.rb8
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[?>]