Module: RIO::Ops::Path::Test

Included in:
NonExisting, Status
Defined in:
lib/rio/ops/path.rb

Instance Method Summary collapse

Instance Method Details

#blockdev?(*args) ⇒ Boolean

Returns:

  • (Boolean)


42
# File 'lib/rio/ops/path.rb', line 42

def blockdev?(*args) fs.blockdev?(self.to_s,*args) end

#chardev?(*args) ⇒ Boolean

Returns:

  • (Boolean)


43
# File 'lib/rio/ops/path.rb', line 43

def chardev?(*args) fs.chardev?(self.to_s,*args) end

#closed?Boolean

Returns:

  • (Boolean)


54
# File 'lib/rio/ops/path.rb', line 54

def closed?() self.ioh.nil? end

#directory?(*args) ⇒ Boolean Also known as: dir?

Returns:

  • (Boolean)


44
# File 'lib/rio/ops/path.rb', line 44

def directory?(*args) fs.directory?(self.to_s,*args) end

#exist?(*args) ⇒ Boolean

Returns:

  • (Boolean)


45
# File 'lib/rio/ops/path.rb', line 45

def exist?(*args) fs.exist?(self.to_s,*args) end

#file?(*args) ⇒ Boolean

Returns:

  • (Boolean)


46
47
48
# File 'lib/rio/ops/path.rb', line 46

def file?(*args) 
  fs.file?(self.to_s,*args) 
end

#open?Boolean

Returns:

  • (Boolean)


53
# File 'lib/rio/ops/path.rb', line 53

def open?() not self.closed? end

#pipe?(*args) ⇒ Boolean

Returns:

  • (Boolean)


49
# File 'lib/rio/ops/path.rb', line 49

def pipe?(*args) fs.pipe?(self.to_s,*args) end

#socket?(*args) ⇒ Boolean

Returns:

  • (Boolean)


50
# File 'lib/rio/ops/path.rb', line 50

def socket?(*args) fs.socket?(self.to_s,*args) end

#symlink?(*args) ⇒ Boolean

Returns:

  • (Boolean)


51
# File 'lib/rio/ops/path.rb', line 51

def symlink?(*args) fs.symlink?(self.to_s,*args) end