public Method

MailTo.to_s

There's no documentation for this item.

Source Code

# File uri/mailto.rb, line 212
def to_s
  @scheme + ':' + 
    if @to 
      @to
    else
      ''
    end + 
    if @headers.size > 0
      '?' + @headers.collect{|x| x.join('=')}.join('&')
    else
      ''
    end +
    if @fragment
      '#' + @fragment
    else
      ''
    end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.