Yields each source URI
in the list.
Default fetcher instance. Use this instead of ::new
to reduce object allocation.
Enumerate every known spec. See ::dirs=
and ::add_spec
to set the list of specs.
See IO.foreach
when path
is a file.
See Dir.foreach
when path
is a directory.
Executes the given command
with the options
parameter.
Example:
print sh.system("ls", "-l") sh.system("ls", "-l") | sh.head > STDOUT
Returns a Echo
object, for the given strings
Iterates a block for each line.
v
String
public setter for the scheme component v
. (with validation)
see also URI::Generic.check_scheme
require 'uri' uri = URI.parse("http://my.example.com") uri.scheme = "https" # => "https" uri #=> #<URI::HTTP:0x000000008e89e8 URL:https://my.example.com>
Checks if URI
has a path