method
getresource
getresource(name, typeclass)
public
Hide source
# File lib/resolv.rb, line 450 def getresource(name, typeclass) each_resource(name, typeclass) {|resource| return resource} raise ResolvError.new("DNS result has no information for #{name}") end