summaryrefslogtreecommitdiffstats
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
commitfa9c307fff0e24531b49972fec5268d34deda72a (patch)
treea0a8dee81799b7e8982387ff12dd7baded9dfa09 /lib/rss/syndication.rb
parentcdd7e27d11e3e87c7523734ec6680d3d5fa05abb (diff)
downloadruby-fa9c307fff0e24531b49972fec5268d34deda72a.tar.gz
ruby-fa9c307fff0e24531b49972fec5268d34deda72a.tar.xz
ruby-fa9c307fff0e24531b49972fec5268d34deda72a.zip
* lib/rss: rss/parser.rb is always required.
git-svn-id: http://svn.ruby-lang.org/repos/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 74bfbac8e..39005f64c 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