Returns true
if the entry is a directory (i.e., the value of the type fact is dir, cdir, or pdir).
Is this handler a streaming handler?
Returns an array of the eigenvectors
Sends an HTTPRequest
object req
to the HTTP
server.
If req
is a Net::HTTP::Post
or Net::HTTP::Put
request containing data, the data is also sent. Providing data for a Net::HTTP::Head
or Net::HTTP::Get
request results in an ArgumentError
.
Returns an HTTPResponse
object.
When called with a block, passes an HTTPResponse
object to the block. The body of the response will not have been read yet; the block can process it using HTTPResponse#read_body
, if desired.
This method never raises Net::* exceptions.
Starts a POP3
session and iterates over each POPMail
object, yielding it to the block
. This method is equivalent to:
Net::POP3.start(address, port, account, password) do |pop| pop.each_mail do |m| yield m end end
This method raises a POPAuthenticationError
if authentication fails.
Net::POP3.foreach('pop.example.com', 110, 'YourAccount', 'YourPassword') do |m| file.write m.pop m.delete if $DELETE end
Does this dependency require a prerelease?
What does this dependency require?
Cleans up uninstalled files and invalid gem specifications
Indicate if this NameTuple
is for a prerelease version.
Noop this out so there are no anchors
Performs a Net::HTTP
request of type request_class
on uri
returning a Net::HTTP
response object. request maintains a table of persistent connections to reduce connect overhead.
A requirement is a prerelease if any of the versions inside of it are prereleases
True if the version
string matches RubyGems’ requirements.
A version is considered a prerelease if it contains a letter.
Lists the external (to RubyGems) requirements that must be met for this gem to work. It’s simply information for the user.
Usage:
spec.requirements << 'libmagick, v6.0' spec.requirements << 'A good graphics card'
Set
requirements to req
, ensuring it is an array. Don’t use this, push onto the array instead.
See IO.foreach
when path
is a file.
See Dir.foreach
when path
is a directory.
Stops the server from accepting new connections.
Returns true
if this process is stopped. This is only returned if the corresponding wait
call had the WUNTRACED
flag set.
Returns true
if stat generated a coredump when it terminated. Not available on all platforms.