Class: Zapp::SocketPipe::Sender
- Inherits:
-
Object
- Object
- Zapp::SocketPipe::Sender
- Defined in:
- lib/zapp/socket_pipe/sender.rb
Instance Attribute Summary collapse
-
#pipe ⇒ Object
readonly
Returns the value of attribute pipe.
Instance Method Summary collapse
-
#initialize(pipe:) ⇒ Sender
constructor
A new instance of Sender.
- #push(socket) ⇒ Object
Constructor Details
#initialize(pipe:) ⇒ Sender
Returns a new instance of Sender.
8 9 10 |
# File 'lib/zapp/socket_pipe/sender.rb', line 8 def initialize(pipe:) @pipe = pipe end |
Instance Attribute Details
#pipe ⇒ Object (readonly)
Returns the value of attribute pipe.
6 7 8 |
# File 'lib/zapp/socket_pipe/sender.rb', line 6 def pipe @pipe end |
Instance Method Details
#push(socket) ⇒ Object
12 13 14 |
# File 'lib/zapp/socket_pipe/sender.rb', line 12 def push(socket) pipe.send(socket) end |