class FlatKit::Jsonl::Format
Public Class Methods
format_name()
click to toggle source
# File lib/flat_kit/jsonl/format.rb, line 4 def self.format_name "jsonl" end
handles?(filename)
click to toggle source
# File lib/flat_kit/jsonl/format.rb, line 8 def self.handles?(filename) parts = filename.split(".") %w[ json jsonl ndjson ].each do |ext| return true if parts.include?(ext) end return false end
reader()
click to toggle source
# File lib/flat_kit/jsonl/format.rb, line 16 def self.reader ::FlatKit::Jsonl::Reader end
writer()
click to toggle source
# File lib/flat_kit/jsonl/format.rb, line 20 def self.writer ::FlatKit::Jsonl::Writer end