lib/rio/ops/file.rb in rio-0.4.1 vs lib/rio/ops/file.rb in rio-0.4.2
- old
+ new
@@ -1,8 +1,8 @@
#--
# ===============================================================================
-# Copyright (c) 2005,2006,2007 Christopher Kleckner
+# Copyright (c) 2005,2006,2007,2008 Christopher Kleckner
# All rights reserved
#
# This file is part of the Rio library for ruby.
#
# Rio is free software; you can redistribute it and/or modify
@@ -79,10 +79,11 @@
rtn_reset {
fs.rm(self,*args)
}
end
alias :delete :rm
+ alias :unlink :delete
alias :delete! :rm
def touch(*args) rtn_self { fs.touch(self.to_s,*args) } end
def truncate(sz=0) rtn_reset { fs.truncate(self.to_s,sz) } end
def clear() truncate(0) end
end
@@ -90,9 +91,10 @@
include ExistOrNot
include FileOrDir::NonExisting
def rm(*args) rtn_self { ; } end
alias delete rm
+ alias :unlink :delete
alias delete! rm
def touch(*args) rtn_reset { fs.touch(self,*args) } end
end
end
end