Sha256: a9f92ff85e05772075d52055a649d0f9c8128e8bb921d4f99c50dfb6d536e32f

Contents?: true

Size: 287 Bytes

Versions: 32

Compression:

Stored size: 287 Bytes

Contents

# frozen_string_literal: true
require 'json'

module Dato
  module Dump
    module Format
      module Json
        def self.dump(value)
          JSON.dump(value)
        end

        def self.frontmatter_dump(value)
          "#{dump(value)}\n"
        end
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
dato-0.3.28 lib/dato/dump/format/json.rb
dato-0.3.27 lib/dato/dump/format/json.rb
dato-0.3.26 lib/dato/dump/format/json.rb
dato-0.3.25 lib/dato/dump/format/json.rb
dato-0.3.24 lib/dato/dump/format/json.rb
dato-0.3.23 lib/dato/dump/format/json.rb
dato-0.3.22 lib/dato/dump/format/json.rb
dato-0.3.21 lib/dato/dump/format/json.rb
dato-0.3.20 lib/dato/dump/format/json.rb
dato-0.3.19 lib/dato/dump/format/json.rb
dato-0.3.18 lib/dato/dump/format/json.rb
dato-0.3.17 lib/dato/dump/format/json.rb