set_extensions

set_extensions(val) Instance Protected methods private setter for extensions val

set_filter

set_filter(val) Instance Protected methods private setter for filter val

set_scope

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

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

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.

headers=

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

to=

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

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_rfc822text

to_rfc822text() Instance Public methods Alias for: to_mailtext

to_s

to_s() Instance Public methods Constructs String from URI