Module: TSV
- Extended by:
- TSV
- Included in:
- TSV
- Defined in:
- lib/tsv.rb,
lib/tsv/row.rb,
lib/tsv/table.rb,
lib/tsv/version.rb
Defined Under Namespace
Classes: ReadOnly, Row, Table
Constant Summary
collapse
- VERSION =
"1.0.0"
Instance Method Summary
collapse
Instance Method Details
#parse(content, opts = {}, &block) ⇒ Object
10
11
12
|
# File 'lib/tsv.rb', line 10
def parse(content, opts = {}, &block)
TSV::Table.new(content, opts, &block)
end
|
#parse_file(filename, opts = {}, &block) ⇒ Object
Also known as:
[]
14
15
16
|
# File 'lib/tsv.rb', line 14
def parse_file(filename, opts = {}, &block)
TSV::Table.new(File.new(filename, 'r'), opts, &block)
end
|