Class: ChildProcess::Unix::Lib::Attrs
- Inherits:
-
Object
- Object
- ChildProcess::Unix::Lib::Attrs
- Defined in:
- lib/childprocess/unix/lib.rb
Overview
FileActions
Instance Method Summary collapse
- #flags ⇒ Object
- #flags=(flags) ⇒ Object
- #free ⇒ Object
-
#initialize ⇒ Attrs
constructor
A new instance of Attrs.
- #to_ptr ⇒ Object
Constructor Details
Instance Method Details
#flags ⇒ Object
155 156 157 158 159 160 |
# File 'lib/childprocess/unix/lib.rb', line 155 def flags ptr = FFI::MemoryPointer.new(:short) Lib.check Lib.posix_spawnattr_getflags(@ptr, ptr) ptr.read_short end |
#flags=(flags) ⇒ Object
151 152 153 |
# File 'lib/childprocess/unix/lib.rb', line 151 def flags=(flags) Lib.check Lib.posix_spawnattr_setflags(@ptr, flags) end |
#free ⇒ Object
146 147 148 149 |
# File 'lib/childprocess/unix/lib.rb', line 146 def free Lib.check Lib.posix_spawnattr_destroy(@ptr) @ptr = nil end |
#to_ptr ⇒ Object
162 163 164 |
# File 'lib/childprocess/unix/lib.rb', line 162 def to_ptr @ptr end |