PHP 8.2.31
Preview: build-c.yaml Size: 1.39 KB
//proc/thread-self/root/opt/alt/ruby18/share/ri/1.8/system/URI/MailTo/build-c.yaml

--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::H 
  level: 2
  text: Description
- !ruby/struct:SM::Flow::P 
  body: Creates a new URI::MailTo object from components, with syntax checking.
- !ruby/struct:SM::Flow::P 
  body: Components can be provided as an Array or Hash. If an Array is used, the components must be supplied as [to, headers].
- !ruby/struct:SM::Flow::P 
  body: If a Hash is used, the keys are the component names preceded by colons.
- !ruby/struct:SM::Flow::P 
  body: The headers can be supplied as a pre-encoded string, such as "subject=subscribe&cc=address", or as an Array of Arrays like [['subject', 'subscribe'], ['cc', 'address']]
- !ruby/struct:SM::Flow::P 
  body: "Examples:"
- !ruby/struct:SM::Flow::VERB 
  body: "   require 'uri'\n\n   m1 = URI::MailTo.build(['joe@example.com', 'subject=Ruby'])\n   puts m1.to_s  ->  mailto:joe@example.com?subject=Ruby\n\n   m2 = URI::MailTo.build(['john@example.com', [['Subject', 'Ruby'], ['Cc', 'jack@example.com']]])\n   puts m2.to_s  ->  mailto:john@example.com?Subject=Ruby&Cc=jack@example.com\n\n   m3 = URI::MailTo.build({:to => 'listman@example.com', :headers => [['subject', 'subscribe']]})\n   puts m3.to_s  ->  mailto:listman@example.com?subject=subscribe\n"
full_name: URI::MailTo::build
is_singleton: true
name: build
params: (args)
visibility: public

Directory Contents

Dirs: 0 × Files: 12

Name Size Perms Modified Actions
1.39 KB lrw-r--r-- 2023-07-26 13:47:23
Edit Download
1.31 KB lrw-r--r-- 2023-07-26 13:47:23
Edit Download
187 B lrw-r--r-- 2023-07-26 13:47:23
Edit Download
177 B lrw-r--r-- 2023-07-26 13:47:23
Edit Download
176 B lrw-r--r-- 2023-07-26 13:47:23
Edit Download
478 B lrw-r--r-- 2023-07-26 13:47:23
Edit Download
185 B lrw-r--r-- 2023-07-26 13:47:23
Edit Download
175 B lrw-r--r-- 2023-07-26 13:47:23
Edit Download
166 B lrw-r--r-- 2023-07-26 13:47:23
Edit Download
649 B lrw-r--r-- 2023-07-26 13:47:23
Edit Download
246 B lrw-r--r-- 2023-07-26 13:47:23
Edit Download
167 B lrw-r--r-- 2023-07-26 13:47:23
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).