# File lib/dnsruby/DNS.rb, line 86 def self.open(*args) dns = new(*args) return dns unless block_given? begin yield dns ensure dns.close end end