instance method
URI::MailTo#to_s
() -> ::String
to_s
lib/uri/mailto.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/uri/mailto.rb, line 239
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