$LOAD_PATH = [] def require(filename) full_path = $LOAD_PATH.first do |path| File.exist?(File.join(path, filename)) end eval File.read(full_path) end