mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/csv.rb (init_comments): Document private method #init_comments.
Based on a patch from Vincent Batts [ruby-core:49172] [Bug #7319] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5de3acdcd8
commit
a4b0291fcb
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Nov 14 11:51:00 2012 Zachary Scott <zachary@zacharyscott.net>
|
||||
|
||||
* 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@mrkn.jp>
|
||||
|
||||
* Makefile.in (probes.h): create from probes.d
|
||||
|
|
|
@ -2206,6 +2206,11 @@ class CSV
|
|||
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue