Maintenance Ruby 3.3 gets fixes, but no new features. 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.3.0/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.2 · 3.1 · 3.0