set_to

set_to(v) Instance Protected methods private setter for to v

set_headers

set_headers(v) Instance Protected methods private setter for headers v

to_s

to_s() Instance Public methods Constructs String from URI

to_rfc822text

to_rfc822text() Instance Public methods Alias for: to_mailtext

to_mailtext

to_mailtext() Instance Public methods Returns the RFC822 e-mail text equivalent of the URL, as a String. Example: require 'uri' uri = URI.parse("mailto:ruby-list@ruby-lang.org?Subject=subscribe&cc=myaddr") uri.to_mailtext # => "To: ruby-list@ruby-lang.org\nSubject: subscribe\nCc: myaddr\n\n\n" to_rfc822text

to=

to=(v) Instance Public methods setter for to v

headers=

headers=(v) Instance Public methods setter for headers v

new

new(*arg) Class Public methods Description Creates a new URI::MailTo object from generic URL components with no syntax checking. This method is usually called from URI.parse, which checks the validity of each component.

build

build(args) Class Public methods Description Creates a new URI::MailTo object from components, with syntax checking. Components can be provided as an Array or Hash. If an Array is used, the components must be supplied as [to, headers]. If a Hash is used, the keys are the component names preceded by colons. 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'] Examp

set_scope

set_scope(val) Instance Protected methods private setter for scope val