lib/rubysermon/mod_loader.rb
def91ab1
 module Rubysermon
 	class ModLoader
 
 		def self.load(new_class)
 			begin
3140369a
 				require "#{LIB_PATH}/rubysermon/mod/#{new_class.downcase}"
def91ab1
 
 				capitalized_class = new_class.capitalize
 				return (Rubysermon.const_get capitalized_class).new
 			rescue LoadError
 				raise ModLoaderException, "File module not found"
 			end
 		end
 
 	end
 
 	class ModLoaderException < Exception; end
 end