$:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__))) module Plugin Dir[File.dirname(__FILE__) + '/plugin/*.rb'].each {|file| require file } end