Module: RIO::Ops::Path::Test
- Included in:
- NonExisting, Status
- Defined in:
- lib/rio/ops/path.rb
Instance Method Summary collapse
- #blockdev?(*args) ⇒ Boolean
- #chardev?(*args) ⇒ Boolean
- #closed? ⇒ Boolean
- #directory?(*args) ⇒ Boolean (also: #dir?)
- #exist?(*args) ⇒ Boolean
- #file?(*args) ⇒ Boolean
- #open? ⇒ Boolean
- #pipe?(*args) ⇒ Boolean
- #socket?(*args) ⇒ Boolean
- #symlink?(*args) ⇒ Boolean
Instance Method Details
#blockdev?(*args) ⇒ Boolean
42 |
# File 'lib/rio/ops/path.rb', line 42 def blockdev?(*args) fs.blockdev?(self.to_s,*args) end |
#chardev?(*args) ⇒ Boolean
43 |
# File 'lib/rio/ops/path.rb', line 43 def chardev?(*args) fs.chardev?(self.to_s,*args) end |
#closed? ⇒ Boolean
54 |
# File 'lib/rio/ops/path.rb', line 54 def closed?() self.ioh.nil? end |
#directory?(*args) ⇒ Boolean Also known as: dir?
44 |
# File 'lib/rio/ops/path.rb', line 44 def directory?(*args) fs.directory?(self.to_s,*args) end |
#exist?(*args) ⇒ Boolean
45 |
# File 'lib/rio/ops/path.rb', line 45 def exist?(*args) fs.exist?(self.to_s,*args) end |
#file?(*args) ⇒ Boolean
46 47 48 |
# File 'lib/rio/ops/path.rb', line 46 def file?(*args) fs.file?(self.to_s,*args) end |
#open? ⇒ Boolean
53 |
# File 'lib/rio/ops/path.rb', line 53 def open?() not self.closed? end |
#pipe?(*args) ⇒ Boolean
49 |
# File 'lib/rio/ops/path.rb', line 49 def pipe?(*args) fs.pipe?(self.to_s,*args) end |
#socket?(*args) ⇒ Boolean
50 |
# File 'lib/rio/ops/path.rb', line 50 def socket?(*args) fs.socket?(self.to_s,*args) end |
#symlink?(*args) ⇒ Boolean
51 |
# File 'lib/rio/ops/path.rb', line 51 def symlink?(*args) fs.symlink?(self.to_s,*args) end |