Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
Bundler
/
URI
/
RFC2396_Parser
/
//opt/alt/ruby27/share/ri/system/Bundler/URI/RFC2396_Parser/new-c.ri
U:RDoc::AnyMethod[iI"new:ETI"&Bundler::URI::RFC2396_Parser::new;TT:privateo:RDoc::Markup::Document:@parts[S:RDoc::Markup::Heading: leveli: textI" Synopsis;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"&Bundler::URI::Parser.new([opts]) ;T:@format0S; ;i;I" Args;T@ o:RDoc::Markup::Paragraph; [ I";The constructor accepts a hash as options for parser. ;TI"BKeys of options are pattern names of Bundler::URI components ;TI"0and values of options are pattern strings. ;TI"?The constructor generates set of regexps for parsing URIs.;T@ o;; [I"$You can use the following keys:;T@ o;; [ I"<* :ESCAPED (Bundler::URI::PATTERN::ESCAPED in default) ;TI"B* :UNRESERVED (Bundler::URI::PATTERN::UNRESERVED in default) ;TI">* :DOMLABEL (Bundler::URI::PATTERN::DOMLABEL in default) ;TI">* :TOPLABEL (Bundler::URI::PATTERN::TOPLABEL in default) ;TI">* :HOSTNAME (Bundler::URI::PATTERN::HOSTNAME in default) ;T;0S; ;i;I" Examples;T@ o;; [I"Vp = Bundler::URI::Parser.new(:ESCAPED => "(?:%[a-fA-F0-9]{2}|%u[a-fA-F0-9]{4})") ;TI"`u = p.parse("http://example.jp/%uABCD") #=> #<Bundler::URI::HTTP http://example.jp/%uABCD> ;TI"IBundler::URI.parse(u.to_s) #=> raises Bundler::URI::InvalidURIError ;TI" ;TI"#s = "http://example.com/ABCD" ;TI"Gu1 = p.parse(s) #=> #<Bundler::URI::HTTP http://example.com/ABCD> ;TI"Ru2 = Bundler::URI.parse(s) #=> #<Bundler::URI::HTTP http://example.com/ABCD> ;TI"u1 == u2 #=> true ;TI"u1.eql?(u2) #=> false;T;0: @fileI"5lib/bundler/vendor/uri/lib/uri/rfc2396_parser.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(opts = {});T@0FI"RFC2396_Parser;TcRDoc::NormalClass00