Module: RIO::Ops::Path::Create
- Included in:
- Empty, NonExisting, Str
- Defined in:
- lib/rio/ops/create.rb
Instance Method Summary collapse
-
#/(arg) ⇒ Object
alias :catpath! :join!.
- #cleanpath(*args) ⇒ Object
- #cwd(*args, &block) ⇒ Object
- #getwd(*args, &block) ⇒ Object
- #join(*args) ⇒ Object
-
#join!(*args) ⇒ Object
alias :catpath :join.
- #rootpath(*args, &block) ⇒ Object (also: #root)
Instance Method Details
#/(arg) ⇒ Object
alias :catpath! :join!
55 56 57 58 |
# File 'lib/rio/ops/create.rb', line 55 def /(arg) ans = join(arg) return ans end |
#cleanpath(*args) ⇒ Object
71 72 73 |
# File 'lib/rio/ops/create.rb', line 71 def cleanpath(*args) new_rio(fs.cleanpath(fspath,*args)) end |
#cwd(*args, &block) ⇒ Object
63 64 65 |
# File 'lib/rio/ops/create.rb', line 63 def cwd(*args,&block) new_rio(fs.cwd,*args,&block) end |
#getwd(*args, &block) ⇒ Object
60 61 62 |
# File 'lib/rio/ops/create.rb', line 60 def getwd(*args,&block) new_rio(fs.getwd,*args,&block) end |
#join(*args) ⇒ Object
41 42 43 44 45 46 47 48 |
# File 'lib/rio/ops/create.rb', line 41 def join(*args) before = self.rl.to_s arl = self.rl nrio = new_rio(arl,*args) after = self.rl.to_s #p "b=#{before} a=#{after}" nrio end |
#join!(*args) ⇒ Object
alias :catpath :join
50 51 52 53 |
# File 'lib/rio/ops/create.rb', line 50 def join!(*args) rl.join(*args) softreset end |
#rootpath(*args, &block) ⇒ Object Also known as: root
67 68 69 |
# File 'lib/rio/ops/create.rb', line 67 def rootpath(*args,&block) new_rio(fs.root(),*args,&block) end |