Used to manage ruby environment, since it is more beneficial and clean to use non-system one.
Install rbenv and ruby-build
| from __future__ import print_function | |
| import socket | |
| import sys | |
| _module = sys.modules[__name__] | |
| def disable_socket(): | |
| """ disable socket.socket to disable the Internet. useful in testing. | |
| .. doctest:: |