Class: ADSP::Stream::Stat

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/adsp/stream/stat.rb

Overview

ADSP::Stream::Stat class.

Constant Summary collapse

METHODS_RETURNING_FALSE =

List of methods returning false.

%i[
  blockdev?
  chardev?
  directory?
  executable?
  executable_real?
  file?
  grpowned?
  owned?
  pipe?
  setgid?
  setuid?
  socket?
  sticky?
  symlink?
  zero?
]
.freeze
DELEGATES =

List of methods to be forwarded for native stream status info.

%i[
  <=>
  atime
  birthtime
  blksize
  blocks
  ctime
  dev
  dev_major
  dev_minor
  ftype
  gid
  ino
  inspect
  mode
  mtime
  nlink
  rdev
  rdev_major
  rdev_minor
  readable?
  readable_real?
  size
  size?
  uid
  world_readable?
  world_writable?
  writable?
  writable_real?
]
.freeze

Instance Method Summary collapse

Constructor Details

#initialize(stat) ⇒ Stat

Initializes status info based on native stream stat.



69
70
71
# File 'lib/adsp/stream/stat.rb', line 69

def initialize(stat)
  @stat = stat
end