aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rss/rss.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-06 11:38:13 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-06 11:38:13 +0000
commit8bc63849d5f2ba74098590a18b39234b04df0f68 (patch)
tree89bfaa31c4a2cf0fc1d11f7d656e58150636b17c /lib/rss/rss.rb
parentcbcb626ee5110ccf752309683d04654e0a83585f (diff)
downloadruby-8bc63849d5f2ba74098590a18b39234b04df0f68.tar.gz
* lib/rss/rss.rb, lib/rss/parser.rb: followed current Ruby
specification. [ruby-dev:30274] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/rss.rb')
-rw-r--r--lib/rss/rss.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rss/rss.rb b/lib/rss/rss.rb
index 77a8584884..52ca4db890 100644
--- a/lib/rss/rss.rb
+++ b/lib/rss/rss.rb
@@ -25,7 +25,7 @@ class Time
end
end
- unless instance_methods.include?("w3cdtf")
+ unless method_defined?(:w3cdtf)
alias w3cdtf iso8601
end
end
@@ -783,7 +783,7 @@ EOC
def other_element(need_convert, indent='')
rv = []
private_methods.each do |meth|
- if /\A([^_]+)_[^_]+_elements?\z/ =~ meth and
+ if /\A([^_]+)_[^_]+_elements?\z/ =~ meth.to_s and
self.class::NSPOOL.has_key?($1)
res = __send__(meth, need_convert, indent)
rv << res if /\A\s*\z/ !~ res