Sha256: 888b75f5205b319ba1c8e27a539d282b487651b1fb991589a81e21082a207adf
Contents?: true
Size: 226 Bytes
Versions: 2
Compression:
Stored size: 226 Bytes
Contents
class DataProcessor module Output def output_json(path=nil) if path obj, parent_obj = traverse_path(@data, path) Oj.dump(obj || {}) else Oj.dump(@data) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
data_processor-0.2.1 | lib/data_processor/output.rb |
data_processor-0.2.0 | lib/data_processor/output.rb |