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
/
MailTo
/
//opt/alt/ruby27/share/ri/system/Bundler/URI/MailTo/build-c.ri
U:RDoc::AnyMethod[iI" build:ETI" Bundler::URI::MailTo::build;TT:privateo:RDoc::Markup::Document:@parts[S:RDoc::Markup::Heading: leveli: textI"Description;To:RDoc::Markup::BlankLine o:RDoc::Markup::Paragraph; [I"UCreates a new Bundler::URI::MailTo object from components, with syntax checking.;T@ o;; [I"JComponents can be provided as an Array or Hash. If an Array is used, ;TI"Cthe components must be supplied as <code>[to, headers]</code>.;T@ o;; [I"LIf a Hash is used, the keys are the component names preceded by colons.;T@ o;; [I"BThe headers can be supplied as a pre-encoded string, such as ;TI"K<code>"subject=subscribe&cc=address"</code>, or as an Array of Arrays ;TI"Elike <code>[['subject', 'subscribe'], ['cc', 'address']]</code>.;T@ o;; [I"Examples:;T@ o:RDoc::Markup::Verbatim; [I"*require 'bundler/vendor/uri/lib/uri' ;TI" ;TI"Jm1 = Bundler::URI::MailTo.build(['joe@example.com', 'subject=Ruby']) ;TI"9m1.to_s # => "mailto:joe@example.com?subject=Ruby" ;TI" ;TI"nm2 = Bundler::URI::MailTo.build(['john@example.com', [['Subject', 'Ruby'], ['Cc', 'jack@example.com']]]) ;TI"Nm2.to_s # => "mailto:john@example.com?Subject=Ruby&Cc=jack@example.com" ;TI" ;TI"mm3 = Bundler::URI::MailTo.build({:to => 'listman@example.com', :headers => [['subject', 'subscribe']]}) ;TI"Am3.to_s # => "mailto:listman@example.com?subject=subscribe";T:@format0: @fileI"-lib/bundler/vendor/uri/lib/uri/mailto.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(args);T@,TI"MailTo;TcRDoc::NormalClass00