Class: TCPSocket
- Inherits:
-
Object
- Object
- TCPSocket
- Defined in:
- lib/tcr.rb
Overview
The monkey patch shim
Class Method Summary collapse
Class Method Details
.open(address, port, *_args) ⇒ Object
67 68 69 70 71 72 73 |
# File 'lib/tcr.rb', line 67 def open(address, port, *_args) if TCR.configuration.hook_tcp_ports.include?(port) TCR::RecordableTCPSocket.new(address, port, TCR.cassette) else real_open(address, port) end end |
.real_open ⇒ Object
65 |
# File 'lib/tcr.rb', line 65 alias_method :real_open, :open |