Class: Spring::WorkerChannel
- Inherits:
-
Object
- Object
- Spring::WorkerChannel
- Defined in:
- lib/spring-jruby/io_helpers.rb,
lib/spring-jruby/io_helpers.rb
Instance Attribute Summary collapse
-
#to_io ⇒ Object
readonly
Returns the value of attribute to_io.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(path) ⇒ WorkerChannel
constructor
A new instance of WorkerChannel.
Constructor Details
#initialize(path) ⇒ WorkerChannel
Returns a new instance of WorkerChannel.
41 42 43 |
# File 'lib/spring-jruby/io_helpers.rb', line 41 def initialize(socket) @to_io = socket end |
Instance Attribute Details
#to_io ⇒ Object (readonly)
Returns the value of attribute to_io.
39 40 41 |
# File 'lib/spring-jruby/io_helpers.rb', line 39 def to_io @to_io end |
Class Method Details
.pair ⇒ Object
30 31 32 33 |
# File 'lib/spring-jruby/io_helpers.rb', line 30 def self.pair a, b = UNIXSocket.pair [new(a), IOWrapper.new(b)] end |
.remote_endpoint ⇒ Object
35 36 37 |
# File 'lib/spring-jruby/io_helpers.rb', line 35 def self.remote_endpoint UNIXSocket.for_fd(3) end |