lib/rio/state.rb in rio-0.4.1 vs lib/rio/state.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 @@ -197,28 +197,21 @@ # Section: Rio Interface # gives states the ability to create new rio objects # (should this be here???) def new_rio(arg0,*args,&block) - #return arg0 if arg0.nil? # watch out for dir.read! if you remove this line - nrio = Rio.rio(arg0,*args,&block) - #nrio.fs = self.fs - nrio + Rio.rio(arg0,*args,&block) end def new_rio_cx(*args) n = new_rio(*args) - #p "new_rio_cx 1: #{n.cx.inspect}" n.cx = self.cx.bequeath(n.cx) - #p "new_rio_cx 2: #{n.cx.inspect}" - #n.fs = self.fs n end def clone_rio() cp = Rio.new(self.rl) cp.cx = self.cx.clone cp.ioh = self.ioh.clone unless self.ioh.nil? cp.rl = self.rl.clone - #cp.fs = self.fs cp end def ensure_rio(arg0) case arg0