diff options
Diffstat (limited to 'lib/rss/rss.rb')
-rw-r--r-- | lib/rss/rss.rb | 4 |
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 |