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

ruby-changes:25594

From: zzak <ko1@a...>
Date: Wed, 14 Nov 2012 11:53:16 +0900 (JST)
Subject: [ruby-changes:25594] zzak:r37651 (trunk): * lib/csv.rb (init_comments): Document private method #init_comments.

zzak	2012-11-14 11:53:02 +0900 (Wed, 14 Nov 2012)

  New Revision: 37651

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

  Log:
    * lib/csv.rb (init_comments): Document private method #init_comments.
      Based on a patch from Vincent Batts [ruby-core:49172] [Bug #7319]

  Modified files:
    trunk/ChangeLog
    trunk/lib/csv.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 37650)
+++ ChangeLog	(revision 37651)
@@ -1,3 +1,8 @@
+Wed Nov 14 11:51:00 2012  Zachary Scott  <zachary@z...>
+
+	* lib/csv.rb (init_comments): Document private method #init_comments.
+	  Based on a patch from Vincent Batts [ruby-core:49172] [Bug #7319]
+
 Wed Nov 14 00:54:00 2012  Kenta Murata  <mrkn@m...>
 
 	* Makefile.in (probes.h): create from probes.d
Index: lib/csv.rb
===================================================================
--- lib/csv.rb	(revision 37650)
+++ lib/csv.rb	(revision 37651)
@@ -2206,6 +2206,11 @@
     init_converters(options, :header_converters)
   end
 
+  # Stores the pattern of comments to skip from the provided options.
+  #
+  # The pattern must respond to +.match+, else ArgumentError is raised.
+  #
+  # See also CSV.new
   def init_comments(options)
     @skip_lines = options.delete(:skip_lines)
     if @skip_lines and not @skip_lines.respond_to?(:match)

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

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