File: C:/Ruby27-x64/share/ri/2.7.0/system/URI/MailTo/build-c.ri
U:RDoc::AnyMethod[iI"
build:ETI"URI::MailTo::build;TT:publico:RDoc::Markup::Document:@parts[S:RDoc::Markup::Heading:
leveli: textI"Description;To:RDoc::Markup::BlankLine o:RDoc::Markup::Paragraph; [I"LCreates a new 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 'uri'
;TI"
;TI"Am1 = URI::MailTo.build(['joe@example.com', 'subject=Ruby'])
;TI"9m1.to_s # => "mailto:joe@example.com?subject=Ruby"
;TI"
;TI"em2 = 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"dm3 = URI::MailTo.build({:to => 'listman@example.com', :headers => [['subject', 'subscribe']]})
;TI"Am3.to_s # => "mailto:listman@example.com?subject=subscribe";T:@format0:
@fileI"lib/uri/mailto.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(args);T@,TI"MailTo;TcRDoc::NormalClass00