Class: Socket
- Inherits:
-
Object
- Object
- Socket
- Defined in:
- lib/datajud.rb
Class Method Summary collapse
- .tcp(host, port, local_host = nil, local_port = nil, **kwargs) ⇒ Object
- .tcp_without_open_timeout ⇒ Object
Class Method Details
.tcp(host, port, local_host = nil, local_port = nil, **kwargs) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/datajud.rb', line 17 def tcp(host, port, local_host = nil, local_port = nil, **kwargs) if kwargs.key?(:open_timeout) && !kwargs.key?(:connect_timeout) kwargs[:connect_timeout] = kwargs.delete(:open_timeout) end tcp_without_open_timeout(host, port, local_host, local_port, **kwargs) end |
.tcp_without_open_timeout ⇒ Object
15 |
# File 'lib/datajud.rb', line 15 alias_method :tcp_without_open_timeout, :tcp |