instance method
Resolv::Hosts#each_address
(::String name) { (::String) -> void } -> void
each_address(name, &proc)
lib/resolv.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/resolv.rb, line 242
def each_address(name, &proc)
lazy_initialize
@name2addr[name]&.each(&proc)
end
Iterates over all IP addresses for name retrieved from the hosts file.