[前][次][番号順一覧][スレッド一覧]

ruby-changes:14123

From: akr <ko1@a...>
Date: Thu, 26 Nov 2009 23:33:45 +0900 (JST)
Subject: [ruby-changes:14123] Ruby:r25937 (trunk): rdoc update.

akr	2009-11-26 23:32:15 +0900 (Thu, 26 Nov 2009)

  New Revision: 25937

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25937

  Log:
    rdoc update.

  Modified files:
    trunk/lib/time.rb

Index: lib/time.rb
===================================================================
--- lib/time.rb	(revision 25936)
+++ lib/time.rb	(revision 25937)
@@ -252,6 +252,10 @@
     #
     # A failure for Time.parse should be checked, though.
     #
+    # time library should be required to use this method as follows.
+    #
+    #     require 'time'
+    #
     def parse(date, now=self.now)
       comp = !block_given?
       d = Date._parse(date, comp)
@@ -293,6 +297,10 @@
     #
     # See #rfc2822 for more information on this format.
     #
+    # time library should be required to use this method as follows.
+    #
+    #     require 'time'
+    #
     def rfc2822(date)
       if /\A\s*
           (?:(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)\s*,\s*)?
@@ -342,6 +350,10 @@
     #
     # See #httpdate for more information on this format.
     #
+    # time library should be required to use this method as follows.
+    #
+    #     require 'time'
+    #
     def httpdate(date)
       if /\A\s*
           (?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),\x20
@@ -389,6 +401,10 @@
     #
     # See #xmlschema for more information on this format.
     #
+    # time library should be required to use this method as follows.
+    #
+    #     require 'time'
+    #
     def xmlschema(date)
       if /\A\s*
           (-?\d+)-(\d\d)-(\d\d)
@@ -431,6 +447,10 @@
   #
   # If +self+ is a UTC time, -0000 is used as zone.
   #
+  # time library should be required to use this method as follows.
+  #
+  #     require 'time'
+  #
   def rfc2822
     sprintf('%s, %02d %s %0*d %02d:%02d:%02d ',
       RFC2822_DAY_NAME[wday],
@@ -462,6 +482,10 @@
   #
   # Note that the result is always UTC (GMT).
   #
+  # time library should be required to use this method as follows.
+  #
+  #     require 'time'
+  #
   def httpdate
     t = dup.utc
     sprintf('%s, %02d %s %0*d %02d:%02d:%02d GMT',
@@ -484,6 +508,10 @@
   # +fractional_seconds+ specifies a number of digits of fractional seconds.
   # Its default value is 0.
   #
+  # time library should be required to use this method as follows.
+  #
+  #     require 'time'
+  #
   def xmlschema(fraction_digits=0)
     sprintf('%0*d-%02d-%02dT%02d:%02d:%02d',
       year < 0 ? 5 : 4, year, mon, day, hour, min, sec) +

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]