Sha256: cec3c86b5bc54847879c62ddc3181e4cf4afdd025cef220a4e0ae98db95990dd

Contents?: true

Size: 229 Bytes

Versions: 5

Compression:

Stored size: 229 Bytes

Contents

# frozen_string_literal: true

module Aitch
  module Engines
    module JSON
      def self.load(data)
        data && ::JSON.parse(data)
      end

      def self.dump(data)
        ::JSON.dump(data)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
aitch-2.0.0 lib/aitch/engines/json.rb
aitch-1.2.2 lib/aitch/engines/json.rb
aitch-1.2.1 lib/aitch/engines/json.rb
aitch-1.2.0 lib/aitch/engines/json.rb
aitch-1.1.0 lib/aitch/engines/json.rb