activate (Merb::Slices)

    # File lib/merb-slices/module.rb, line 91
          def activate(slice_module)
            unless slice_file = self.files[slice_module.to_s]
              module_name_underscored = slice_module.to_s.snake_case.escape_regexp
              module_name_dasherized  = module_name_underscored.tr('_', '-').escape_regexp
              regexp = Regexp.new(/\/(#{module_name_underscored}|#{module_name_dasherized})\/lib\/(#{module_name_underscored}|#{module_name_dasherized})\.rb$/)
              slice_file = slice_files_from_search_path.find { |path| path.match(regexp) } # from search path(s)
            end
            activate_by_file(slice_file) if slice_file
          rescue => e
            Merb.logger.error!("Failed to activate slice #{slice_module} (#{e.message})")
          end