D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
URI
/
MailTo
/
Filename :
to_mailtext-i.yaml
back
Copy
--- !ruby/object:RI::MethodDescription aliases: - !ruby/object:RI::AliasName name: to_rfc822text block_params: comment: - !ruby/struct:SM::Flow::P body: Returns the RFC822 e-mail text equivalent of the URL, as a String. - !ruby/struct:SM::Flow::P body: "Example:" - !ruby/struct:SM::Flow::VERB body: " require 'uri'\n\n uri = URI.parse("mailto:ruby-list@ruby-lang.org?Subject=subscribe&cc=myaddr")\n uri.to_mailtext\n # => "To: ruby-list@ruby-lang.org\\nSubject: subscribe\\nCc: myaddr\\n\\n\\n"\n" full_name: URI::MailTo#to_mailtext is_singleton: false name: to_mailtext params: () visibility: public