lib/rio/ops/dir.rb in rio-0.4.1 vs lib/rio/ops/dir.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 @@ -129,13 +129,14 @@ def rmdir(*args) fs.rmdir(self.to_s,*args); softreset() end def rmtree(*args) fs.rmtree(self.to_s,*args); softreset() end - + def rm(*args) fs.rm(self.to_s,*args); softreset() end + alias :delete :rmdir + alias :unlink :delete alias :delete! :rmtree - alias :unlink :rmdir def chdir(*args,&block) if block_given? fs.chdir(self.to_s,*args) { |dir| yield new_rio('.')