lib/rio/ops/dir.rb in rio-0.3.1 vs lib/rio/ops/dir.rb in rio-0.3.2

- old
+ new

@@ -135,17 +135,16 @@ alias :delete :rmdir alias :delete! :rmtree alias :unlink :rmdir def chdir(*args,&block) - ndir = new_rio('.') if block_given? Impl::U.chdir(self,*args) { |dir| - yield ndir + yield new_rio('.') } else Impl::U.chdir(self,*args) - return ndir + return new_rio('.') end self end def ensure_rio_cx(arg0)