lib/tabulator/reader.rb in tabulator-0.5.0 vs lib/tabulator/reader.rb in tabulator-0.6.0
- old
+ new
@@ -79,11 +79,11 @@
def to_a
Marshal.load(Marshal.dump(@rows))
end
- def to_json
- to_a.to_json(json_dump_options)
+ def to_json **dump_options
+ to_a.to_json(json_dump_options.merge dump_options)
end
def save path
File.open(path, "w") { |file|
file.write to_json