Class: Socket
- Inherits:
-
Object
- Object
- Socket
- Defined in:
- lib/tcr.rb
Class Method Summary collapse
Class Method Details
.real_tcp ⇒ Object
89 |
# File 'lib/tcr.rb', line 89 alias_method :real_tcp, :tcp |
.tcp(host, port, *socket_opts) ⇒ Object
91 92 93 94 95 96 97 |
# File 'lib/tcr.rb', line 91 def tcp(host, port, *socket_opts) if TCR.configuration.hook_tcp_ports.include?(port) TCR::RecordableTCPSocket.new(host, port, TCR.cassette) else real_tcp(host, port, *socket_opts) end end |