Class: Zapp::SocketPipe::Sender

Inherits:
Object
  • Object
show all
Defined in:
lib/zapp/socket_pipe/sender.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pipeObject (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