summaryrefslogtreecommitdiff
path: root/lib/rss/syndication.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-28 15:19:56 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-28 15:19:56 +0000
commit46f6b2026802fcd227beaac78c8d29378a96dceb (patch)
treea0a8dee81799b7e8982387ff12dd7baded9dfa09 /lib/rss/syndication.rb
parent202bf6618f39f48e81b7bb3c67114a22c2eeda16 (diff)
* lib/rss: rss/parser.rb is always required.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/syndication.rb')
-rw-r--r--lib/rss/syndication.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/rss/syndication.rb b/lib/rss/syndication.rb
index 74bfbac8e1..39005f64c8 100644
--- a/lib/rss/syndication.rb
+++ b/lib/rss/syndication.rb
@@ -71,11 +71,9 @@ module RSS
class Channel; include SyndicationModel; end
end
- if const_defined? :BaseListener
- prefix_size = SY_PREFIX.size + 1
- SyndicationModel::ELEMENTS.each do |x|
- BaseListener.install_get_text_element(x[prefix_size..-1], SY_URI, "#{x}=")
- end
+ prefix_size = SY_PREFIX.size + 1
+ SyndicationModel::ELEMENTS.each do |x|
+ BaseListener.install_get_text_element(x[prefix_size..-1], SY_URI, "#{x}=")
end
end