module Bundler::URI
def self.extract(str, schemes = nil, &block)
# => ["http://foo.example.com/bla", "mailto:test@example.com"]
Bundler::URI.extract("text here http://foo.example.org/bla and here mailto:test@example.com and here also.")
require "bundler/vendor/uri/lib/uri"
== Usage
Returns nil if block given or array with matches.
Extracts URIs from a string. If block given, iterates through all matched URIs.
== Description
Limit Bundler::URI matching to specific schemes.
+schemes+::
String to extract URIs from.
+str+::
== Args
Bundler::URI::extract(str[, schemes][,&blk])
== Synopsis
def self.extract(str, schemes = nil, &block) warn "Bundler::URI.extract is obsolete", uplevel: 1 if $VERBOSE DEFAULT_PARSER.extract(str, schemes, &block) end