uris
an Array of Strings
Attempts to parse and merge a set of URIs
str
String to search
schemes
Patterns to apply to str
Attempts to parse and merge a set of URIs If no block
given , then returns the result, else it calls block
for each element in result.
see also URI::Parser.make_regexp
uris
an Array of Strings
Attempts to parse and merge a set of URIs
str
String to search
schemes
Patterns to apply to str
Attempts to parse and merge a set of URIs If no block
given , then returns the result, else it calls block
for each element in result.
see also URI::Parser.make_regexp
Starts the CGI
process with the given environment env
and standard input and output stdin
and stdout
.
The host this request is for
Sets the response’s status to the status
code
Shortcut for logging an INFO
message
Will the logger output INFO
messages?
A SimpleServer
only yields when you start it
Performs the standard operations for daemonizing a process. Runs a block, if given.
Adds listeners from address
and port
to the server. See WEBrick::Utils::create_listeners
for details.
Starts the server and runs the block
for each connection. This method does not return until the server is stopped from a signal handler or another thread using stop
or shutdown
.
If the block raises a subclass of StandardError
the exception is logged and ignored. If an IOError
or Errno::EBADF exception is raised the exception is ignored. If an Exception
subclass is raised the exception is logged and re-raised which stops the server.
To completely shut down a server call shutdown
from ensure:
server = WEBrick::GenericServer.new # or WEBrick::HTTPServer.new begin server.start ensure server.shutdown end
Stops the server from accepting new connections.
Set
value
as the new date/time component.
Raises an ArgumentError
if the given value
isn’t between 0 and 59.
Deprecated, used YAML::DBM#key
instead.
Note: YAML::DBM#index
makes warning from internal of ::DBM#index. It says ‘DBM#index is deprecated; use DBM#key
’, but DBM#key
behaves not same as DBM#index
.
Returns a Hash
(not a DBM
database) created by using each value in the database as a key, with the corresponding key as its value.
Note that all values in the hash will be Strings, but the keys will be actual objects.
Stores value
in database with key
as the index. value
is converted to YAML before being stored.
Returns value
Override the inspection method.
system("false") p $?.inspect #=> "#<Process::Status: pid 12861 exit 1>"
Returns true
if this process is stopped. This is only returned if the corresponding wait
call had the WUNTRACED
flag set.
Returns the number of the signal that caused stat to stop (or nil
if self is not stopped).
Returns the least significant eight bits of the return code of stat. Only available if exited?
is true
.
fork { } #=> 26572 Process.wait #=> 26572 $?.exited? #=> true $?.exitstatus #=> 0 fork { exit 99 } #=> 26573 Process.wait #=> 26573 $?.exited? #=> true $?.exitstatus #=> 99
Returns the length of the queue.