lib/html2rss/item_extractors.rb in html2rss-0.8.2 vs lib/html2rss/item_extractors.rb in html2rss-0.9.0
- old
+ new
@@ -1,9 +1,10 @@
module Html2rss
##
# Provides a namespace for item extractors.
module ItemExtractors
DEFAULT = 'text'.freeze
+ private_constant :DEFAULT
def self.get_extractor(name)
@get_extractor ||= Hash.new do |extractors, key|
extractors[key] = Utils.get_class_from_name(key || DEFAULT, 'ItemExtractors')
end