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
65 66 67 68 69 70 71 |
# File 'lib/tcr.rb', line 65 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
63 |
# File 'lib/tcr.rb', line 63 alias_method :real_open, :open |