summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-04-18 05:11:31 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-04-18 05:11:31 +0000
commit53641c5118005bcc276557b566e8069972ca4cbc (patch)
treeb471daa2c14899d8024acc3e0da8def350b3792e /lib
parent59c8d11b83d689a9228e0f111cfdbceaaf0515d2 (diff)
modify document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/resolv.rb7
-rw-r--r--lib/time.rb2
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