Class: Spring::IOWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/spring-jruby/io_helpers.rb,
lib/spring-jruby/io_helpers.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ IOWrapper



12
13
14
# File 'lib/spring-jruby/io_helpers.rb', line 12

def initialize(socket)
  @socket = socket
end

Class Method Details

.recv_io(socket, *args) ⇒ Object



8
9
10
# File 'lib/spring-jruby/io_helpers.rb', line 8

def self.recv_io(socket, *args)
  new(socket.recv_io(*args))
end

Instance Method Details

#closeObject



24
25
26
# File 'lib/spring-jruby/io_helpers.rb', line 24

def close
  @socket.close
end

#forward_to(socket) ⇒ Object



16
17
18
# File 'lib/spring-jruby/io_helpers.rb', line 16

def forward_to(socket)
  socket.send_io(@socket)
end

#pathObject



63
64
65
# File 'lib/spring-jruby/io_helpers.rb', line 63

def path
  @path
end

#to_ioObject



20
21
22
# File 'lib/spring-jruby/io_helpers.rb', line 20

def to_io
  @socket
end