spacepaste

  1.  
  2. $LOAD_PATH = []
  3. def require(filename)
  4. full_path = $LOAD_PATH.first do |path|
  5. File.exist?(File.join(path, filename))
  6. end
  7. eval File.read(full_path)
  8. end
  9.