Class: Spring::IOWrapper
- Inherits:
-
Object
- Object
- Spring::IOWrapper
- Defined in:
- lib/spring-jruby/io_helpers.rb,
lib/spring-jruby/io_helpers.rb
Class Method Summary collapse
Instance Method Summary collapse
- #close ⇒ Object
- #forward_to(socket) ⇒ Object
-
#initialize(path) ⇒ IOWrapper
constructor
A new instance of IOWrapper.
- #path ⇒ Object
- #to_io ⇒ Object
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
#close ⇒ Object
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 |
#path ⇒ Object
63 64 65 |
# File 'lib/spring-jruby/io_helpers.rb', line 63 def path @path end |
#to_io ⇒ Object
20 21 22 |
# File 'lib/spring-jruby/io_helpers.rb', line 20 def to_io @socket end |