Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
URI::MailTo#to_s
to_s
lib/uri/mailto.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.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