lib/rio/ops/create.rb in rio-0.3.7 vs lib/rio/ops/create.rb in rio-0.3.8
- old
+ new
@@ -1,8 +1,8 @@
#--
# ===============================================================================
-# Copyright (c) 2005, Christopher Kleckner
+# Copyright (c) 2005, 2006 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
@@ -20,11 +20,11 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# ===============================================================================
#++
#
# To create the documentation for Rio run the command
-# rake rdoc
+# ruby build_doc.rb
# from the distribution directory. Then point your browser at the 'doc/rdoc' directory.
#
# Suggested Reading
# * RIO::Doc::SYNOPSIS
# * RIO::Doc::INTRO
@@ -34,27 +34,15 @@
# <b>Rio is pre-alpha software.
# The documented interface and behavior is subject to change without notice.</b>
module RIO
- module Impl
- module U
- def self.getwd() ::Dir.getwd() end
- def self.rootdir()
- require 'rio/local'
- ::RIO::Local::ROOT_DIR
- end
- def self.join(*args)
- ::File.join(*args)
- end
- end
- end
module Ops
module Path
module Create
def join(*args)
- new_rio(self,*args)
+ new_rio(self.rl,*args)
end
#alias :catpath :join
def join!(*args)
rl.join(*args)
softreset
@@ -63,18 +51,21 @@
def /(arg)
join(arg)
end
def getwd(*args,&block)
- new_rio(RL::getwd,*args,&block)
+ new_rio(fs.getwd,*args,&block)
end
- alias :cwd :getwd
+ def cwd(*args,&block)
+ new_rio(fs.cwd,*args,&block)
+ end
+
def rootpath(*args,&block)
- new_rio(Impl::U.rootdir(),*args,&block)
+ new_rio(fs.root(),*args,&block)
end
alias :root :rootpath
def cleanpath(*args)
- new_rio(Impl::U.cleanpath(fspath,*args))
+ new_rio(fs.cleanpath(fspath,*args))
end
end
end
end
end