End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Resolv::Hosts#each_address
each_address(name, &proc)
lib/resolv.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/resolv.rb, line 235
def each_address(name, &proc)
lazy_initialize
@name2addr[name]&.each(&proc)
end
Iterates over all IP addresses for name retrieved from the hosts file.