From 53641c5118005bcc276557b566e8069972ca4cbc Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 18 Apr 2002 05:11:31 +0000 Subject: [PATCH] modify document. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/resolv.rb | 7 +++++-- lib/time.rb | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/resolv.rb b/lib/resolv.rb index f06b18dc90..83246a135d 100644 --- a/lib/resolv.rb +++ b/lib/resolv.rb @@ -9,8 +9,10 @@ It is possible to lookup various resources of DNS using DNS module directly. == example Resolv.getaddress("www.ruby-lang.org") Resolv.getname("210.251.121.214") - Resolv::DNS.new.getresources("www.ruby-lang.org", Resolv::DNS::Resource::IN::A).collect {|r| r.address} - Resolv::DNS.new.getresources("ruby-lang.org", Resolv::DNS::Resource::IN::MX).collect {|r| [r.exchange.to_s, r.preference]} + + dns = Resolv::DNS.new + dns.getresources("www.ruby-lang.org", Resolv::DNS::Resource::IN::A).collect {|r| r.address} + dns.getresources("ruby-lang.org", Resolv::DNS::Resource::IN::MX).collect {|r| [r.exchange.to_s, r.preference]} == Resolv class @@ -171,6 +173,7 @@ DNS stub resolver. * NIS is not supported. * /etc/nsswitch.conf is not supported. * IPv6 is not supported. +* There is no method to close DNS socket. =end diff --git a/lib/time.rb b/lib/time.rb index aa8ee15de1..093d8f4a8b 100644 --- a/lib/time.rb +++ b/lib/time.rb @@ -10,7 +10,7 @@ This library extends Time class: * date-time defined by RFC 2822 * HTTP-date defined by RFC 2616 * dateTime defined by XML Schema Part 2: Datatypes (ISO 8601) - * various format handled by ParseDate. (string to time only) + * various format handled by ParseDate (string to time only) == Design Issue