lib/indexer/importer.rb in indexer-0.3.0 vs lib/indexer/importer.rb in indexer-0.3.1

- old
+ new

@@ -16,20 +16,26 @@ class Importer # # Require all import mixins. # + # This method calls `super` if it is defined which makes it easy + # for plugins to add new importers. + # def self.require_importers require_relative 'importer/file' require_relative 'importer/ruby' require_relative 'importer/yaml' - require_relative 'importer/html' - require_relative 'importer/markdown' - #require_relative 'importer/rdoc' - #require_relative 'importer/textile' require_relative 'importer/gemspec' require_relative 'importer/gemfile' require_relative 'importer/version' + #require_relative 'importer/html' + #require_relative 'importer/markdown' + #require_relative 'importer/rdoc' + #require_relative 'importer/textile' + + # for plugins to easily add additional importers + super if defined?(super) end # # Import metadata from external sources. #