# File lib/merb-slices/module.rb, line 270 def slice_files_from_search_path search_paths = Array(Merb::Plugins.config[:merb_slices][:search_path] || [Merb.root / "slices"]) search_paths.inject([]) do |files, path| # handle both Pathname and String path = path.to_s if File.file?(path) && File.extname(path) == ".rb" files << path elsif path.include?("*") files += glob_search_path(path) elsif File.directory?(path) files += glob_search_path(path / "**/lib/*.rb") end files end end