Accept connection to IO
tcp
, with context of the current certificate configuration
Returns true
if the listing commands, LIST, NLST, and MLSD are applied to the directory.
Determines whether the response received was a Positive Completion reply (2xx reply code)
Returns a hash of the human readable reply text in the response if it is multiple lines. It does not return the first line. The key of the hash is the first word the value of the hash is an array with each word thereafter being a value in the array
Sets url
as a source for gems for this dependency API. RubyGems uses the default configured sources if no source was given. If a source is set only that source is used.
This method differs in behavior from Bundler:
The :gemcutter
, # :rubygems
and :rubyforge
sources are not supported as they are deprecated in bundler.
The prepend:
option is not supported. If you wish to order sources then list them in your preferred order.
The source for this specification
Returns the line number of this frame.
For example, using caller_locations.rb
from Thread::Backtrace::Location
loc = c(0..1).first loc.lineno #=> 2
@param [Object] underlying_error @return [Conflict] a {Conflict} that reflects the failure to activate
the {#possibility} in conjunction with the current {#state}
Invoked by Process::Status.wait
in order to wait for a specified process. See that method description for arguments description.
Suggested minimal implementation:
Thread.new do Process::Status.wait(pid, flags) end.value
This hook is optional: if it is not present in the current scheduler, Process::Status.wait
will behave as a blocking method.
Expected to returns a Process::Status
instance.
Invoked by Kernel#sleep
and Mutex#sleep
and is expected to provide an implementation of sleeping in a non-blocking way. Implementation might register the current fiber in some list of “what fiber waits till what moment”, call Fiber.yield
to pass control, and then in close
resume the fibers whose wait period have ended.