Class: SubSpawn::Internal::FdSource::Close

Inherits:
SubSpawn::Internal::FdSource show all
Defined in:
lib/subspawn/fd_types.rb

Instance Attribute Summary

Attributes inherited from SubSpawn::Internal::FdSource

#all_dests, #dests

Instance Method Summary collapse

Methods inherited from SubSpawn::Internal::FdSource

#before?, #depends?, #destroys?, #initialize, #max, #raw_apply

Constructor Details

This class inherits a constructor from SubSpawn::Internal::FdSource

Instance Method Details

#apply(base) ⇒ Object



164
165
166
167
# File 'lib/subspawn/fd_types.rb', line 164

def apply base
	@dests.each {|dest| base.fd_close(dest) }
	nil
end

#headsObject



158
159
160
# File 'lib/subspawn/fd_types.rb', line 158

def heads
	nil
end

#tailsObject



161
162
163
# File 'lib/subspawn/fd_types.rb', line 161

def tails
	@dests
end

#to_dbgObject



154
155
156
# File 'lib/subspawn/fd_types.rb', line 154

def to_dbg
	[:close, @dests]
end