End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Win32::Resolv.get_hosts_path
get_hosts_path
ext/win32/lib/win32/resolv.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/ext/win32/lib/win32/resolv.rb, line 14
def self.get_hosts_path
path = get_hosts_dir
path = File.expand_path('hosts', path)
File.exist?(path) ? path : nil
end
No documentation available
See also
.get_hosts_dir
.get_info
.get_dns_server_list
.get_resolv_info
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1