class Bundler::URI::RFC2396_Parser
def extract(str, schemes = nil)
See also Bundler::URI::Parser.make_regexp.
else it calls +block+ for each element in result.
If no +block+ given, then returns the result,
Attempts to parse and merge a set of URIs.
== Description
Patterns to apply to +str+
+schemes+::
String to search
+str+::
== Args
extract( str, schemes ) {|item| block }
extract( str, schemes )
extract( str )
:call-seq:
def extract(str, schemes = nil) if block_given? str.scan(make_regexp(schemes)) { yield $& } nil else result = [] str.scan(make_regexp(schemes)) { result.push $& } result end end