Sha256: 8fa577aa83d60fd28a510ed35da9d28f5848e65c854d6d89c9243bac2dd56bb3

Contents?: true

Size: 236 Bytes

Versions: 2

Compression:

Stored size: 236 Bytes

Contents

require 'json'

module Metastore
  module Storage
    class JSON < Base

      private

        def read
          ::JSON.parse(file.read)
        end

        def to_write(values)
          values.to_json
        end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
metastore-0.4.0 lib/metastore/storage/json.rb
metastore-0.3.0 lib/metastore/storage/json.rb