Class: SubSpawn::Internal::FdSource::Xchange

Inherits:
Struct
  • Object
show all
Defined in:
lib/subspawn/fd_types.rb,
lib/subspawn/fd_types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fdObject

Returns the value of attribute fd

Returns:

  • (Object)

    the current value of fd



170
171
172
# File 'lib/subspawn/fd_types.rb', line 170

def fd
  @fd
end

Instance Method Details

#to_iObject



175
176
177
# File 'lib/subspawn/fd_types.rb', line 175

def to_i
	fd
end

#to_sObject



172
173
174
# File 'lib/subspawn/fd_types.rb', line 172

def to_s
	"xc_#{fd}"
end