Class: CSV::Table
- Inherits:
-
Object
- Object
- CSV::Table
- Defined in:
- lib/csv/probe.rb
Overview
Extend CSV::Table with .lint(…) method
Instance Method Summary collapse
-
#lint(checks, opts = {}) ⇒ Object
rubocop:disable Style/ClassAndModuleChildren.
Instance Method Details
#lint(checks, opts = {}) ⇒ Object
rubocop:disable Style/ClassAndModuleChildren
53 54 55 56 |
# File 'lib/csv/probe.rb', line 53 def lint(checks, opts = {}) opts[:headers] = true unless opts.key?(:headers) # CSV::Table has always headers, hence set :headers = true Probe.lint_rows(self, checks, opts) end |