lib/megahal/megahal.rb
# this is used when saving and loading; we do this by creating and immediately
# removing a temporary file, then returning it's path (yech)
this is used when saving and loading; we do this by creating and immediately
removing a temporary file, then returning it's path (yech)
this is used when saving and loading ; we do this by creating and immediately removing a temporary file then returning it ' s path ( yech )
def _get_tmp_filename(name)
    file = Tempfile.new(name.to_s)
    retval = file.path
    file.close
    file.unlink
    return retval
  end
def _get_tmp_filename ( name ) file = Tempfile . new ( name . to_s ) retval = file . path file . close file . unlink return retval end
this is used when saving and loading; we do this by creating and immediately
removing a temporary file, then returning it's path (yech)
this is used when saving and loading ; we do this by creating and immediately removing a temporary file then returning it ' s path ( yech )
name