$71 GRAYBYTE WORDPRESS FILE MANAGER $88

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.23
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/ruby34/share/gems/gems/csv-3.3.2/doc/csv/options/parsing/

HOME
Current File : /opt/alt/ruby34/share/gems/gems/csv-3.3.2/doc/csv/options/parsing//skip_lines.rdoc
====== Option +skip_lines+

Specifies an object to use in identifying comment lines in the input that are to be ignored:
* If a \Regexp, ignores lines that match it.
* If a \String, converts it to a \Regexp, ignores lines that match it.
* If +nil+, no lines are considered to be comments.

Default value:
  CSV::DEFAULT_OPTIONS.fetch(:skip_lines) # => nil

For examples in this section:
  str = <<-EOT
  # Comment
  foo,0
  bar,1
  baz,2
  # Another comment
  EOT
  str # => "# Comment\nfoo,0\nbar,1\nbaz,2\n# Another comment\n"

Using the default, +nil+:
  ary = CSV.parse(str)
  ary # => [["# Comment"], ["foo", "0"], ["bar", "1"], ["baz", "2"], ["# Another comment"]]

Using a \Regexp:
  ary = CSV.parse(str, skip_lines: /^#/)
  ary # => [["foo", "0"], ["bar", "1"], ["baz", "2"]]

Using a \String:
  ary = CSV.parse(str, skip_lines: '#')
  ary # => [["foo", "0"], ["bar", "1"], ["baz", "2"]]

---

Raises an exception if given an object that is not a \Regexp, a \String, or +nil+:
  # Raises ArgumentError (:skip_lines has to respond to #match: 0)
  CSV.parse(str, skip_lines: 0)


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
27 Jan 2026 4.00 PM
root / linksafe
0755
converters.rdoc
1.461 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
empty_value.rdoc
0.391 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
field_size_limit.rdoc
1.163 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
header_converters.rdoc
1.438 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
headers.rdoc
1.438 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
liberal_parsing.rdoc
1.499 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
nil_value.rdoc
0.343 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
return_headers.rdoc
0.555 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
skip_blanks.rdoc
0.766 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
skip_lines.rdoc
1.059 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
strip.rdoc
0.354 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
unconverted_fields.rdoc
0.953 KB
27 Jan 2026 4.00 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF