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
c6c0cb68
 				raise ModLoaderException, "File module #{new_class} not found"
def91ab1
 			end
 		end
 
 	end
 
 	class ModLoaderException < Exception; end
 end