Constructs the eigenvalue decomposition for a square matrix A
Creates and returns a new FTP
object. If a host
is given, a connection is made.
options
is an option hash, each key of which is a symbol.
The available options are:
Port number (default value is 21)
If options is true, then an attempt will be made to use SSL (now TLS) to connect to the server. For this to work OpenSSL
[OSSL] and the Ruby OpenSSL
[RSSL] extensions need to be installed. If options is a hash, it’s passed to OpenSSL::SSL::SSLContext#set_params
as parameters.
If true, TLS is used for data connections. Default: true
when options is true.
Username for login. If options is the string “anonymous” and the options is nil
, “anonymous@” is used as a password.
Password for login.
Account information for ACCT.
When true
, the connection is in passive mode. Default: true
.
open_timeout
Number of seconds to wait for the connection to open. See Net::FTP#open_timeout
for details. Default: nil
.
read_timeout
Number of seconds to wait for one block to be read. See Net::FTP#read_timeout
for details. Default: 60
.
ssl_handshake_timeout
Number of seconds to wait for the TLS handshake. See Net::FTP#ssl_handshake_timeout
for details. Default: nil
.
debug_mode
When true
, all traffic to and from the server is written to +$stdout+. Default: false
.
Creates a new Net::HTTP
object without opening a TCP connection or HTTP
session.
The address
should be a DNS hostname or IP address, the port
is the port the server operates on. If no port
is given the default port for HTTP
or HTTPS is used.
If none of the p_
arguments are given, the proxy host and port are taken from the http_proxy
environment variable (or its uppercase equivalent) if present. If the proxy requires authentication you must supply it by hand. See URI::Generic#find_proxy
for details of proxy detection from the environment. To disable proxy detection set p_addr
to nil.
If you are connecting to a custom proxy, p_addr
the DNS name or IP address of the proxy host, p_port
the port to use to access the proxy, and p_user
and p_pass
the username and password if authorization is required to use the proxy.
Creates an HTTP request object for path
.
initheader
are the default headers to use. Net::HTTP
adds Accept-Encoding to enable compression of the response body unless Accept-Encoding or Range
are supplied in initheader
.
Creates a new Net::IMAP
object and connects it to the specified host
.
options
is an option hash, each key of which is a symbol.
The available options are:
Port number (default value is 143 for imap, or 993 for imaps)
If options is true, then an attempt will be made to use SSL (now TLS) to connect to the server. For this to work OpenSSL
[OSSL] and the Ruby OpenSSL
[RSSL] extensions need to be installed. If options is a hash, it’s passed to OpenSSL::SSL::SSLContext#set_params
as parameters.
The most common errors are:
Connection refused by host
or an intervening firewall.
Connection timed out (possibly due to packets being dropped by an intervening firewall).
There is no route to that network.
SocketError
Hostname not known or other socket error.
Net::IMAP::ByeResponseError
The connected to the host was successful, but it immediately said goodbye.
Creates a new POP3
object.
address
is the hostname or ip address of your POP3
server.
The optional port
is the port to connect to.
The optional isapop
specifies whether this connection is going to use APOP
authentication; it defaults to false
.
This method does not open the TCP connection.
Creates a new Net::SMTP
object.
address
is the hostname or ip address of your SMTP
server. port
is the port to connect to; it defaults to port 25.
This method does not open the TCP connection. You can use SMTP.start
instead of SMTP.new
if you want to do everything at once. Otherwise, follow SMTP.new
with SMTP#start
.
Creates a new URI::FTP
object from generic URL components with no syntax checking.
Unlike build(), this method does not escape the path component as required by RFC1738; instead it is treated as per RFC2396.
Arguments are scheme
, userinfo
, host
, port
, registry
, path
, opaque
, query
and fragment
, in that order.
Just initializes all instance variables.
Create a PrettyPrint::SingleLine
object
Arguments:
output
- String (or similar) to store rendered text. Needs to respond to ‘<<’
maxwidth
- Argument position expected to be here for compatibility.
This argument is a noop.
newline
- Argument position expected to be here for compatibility.
This argument is a noop.