Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Resolv::DNS::SvcParams.new
new(params = [])
lib/resolv.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/resolv.rb, line 1732
def initialize(params = [])
@params = {}
params.each do |param|
add param
end
end
Create a list of SvcParams with the given initial content.
params has to be an enumerable of SvcParams. If its content has SvcParams with the duplicate key, the one appears last takes precedence.