Module: RIO::Ops::Path::Create
- Included in:
- Empty, NonExisting, Str
- Defined in:
- lib/rio/ops/create.rb
Instance Method Summary collapse
- #/(arg) ⇒ Object
- #cleanpath(*args) ⇒ Object
- #cwd(*args, &block) ⇒ Object
- #getwd(*args, &block) ⇒ Object
- #join(*args) ⇒ Object
- #join!(*args) ⇒ Object
- #rootpath(*args, &block) ⇒ Object (also: #root)
Instance Method Details
#/(arg) ⇒ Object
40 41 42 |
# File 'lib/rio/ops/create.rb', line 40 def /(arg) join(arg) end |
#cleanpath(*args) ⇒ Object
55 56 57 |
# File 'lib/rio/ops/create.rb', line 55 def cleanpath(*args) new_rio(fs.cleanpath(fspath,*args)) end |
#cwd(*args, &block) ⇒ Object
47 48 49 |
# File 'lib/rio/ops/create.rb', line 47 def cwd(*args,&block) new_rio(fs.cwd,*args,&block) end |
#getwd(*args, &block) ⇒ Object
44 45 46 |
# File 'lib/rio/ops/create.rb', line 44 def getwd(*args,&block) new_rio(fs.getwd,*args,&block) end |
#join(*args) ⇒ Object
30 31 32 33 34 |
# File 'lib/rio/ops/create.rb', line 30 def join(*args) rtn_rio { uri.clone.join(*args) } end |
#join!(*args) ⇒ Object
35 36 37 38 39 |
# File 'lib/rio/ops/create.rb', line 35 def join!(*args) rtn_reset { uri.join(*args) } end |
#rootpath(*args, &block) ⇒ Object Also known as: root
51 52 53 |
# File 'lib/rio/ops/create.rb', line 51 def rootpath(*args,&block) new_rio(fs.root(),*args,&block) end |