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.6.9 lib/dato/dump/format/json.rb
dato-0.6.8 lib/dato/dump/format/json.rb
dato-0.6.7 lib/dato/dump/format/json.rb
dato-0.6.6 lib/dato/dump/format/json.rb
dato-0.6.5 lib/dato/dump/format/json.rb
dato-0.6.3 lib/dato/dump/format/json.rb
dato-0.6.3.beta lib/dato/dump/format/json.rb
dato-0.6.2 lib/dato/dump/format/json.rb
dato-0.6.1 lib/dato/dump/format/json.rb
dato-0.6.0 lib/dato/dump/format/json.rb
dato-0.5.1 lib/dato/dump/format/json.rb
dato-0.5.0 lib/dato/dump/format/json.rb
dato-0.4.3 lib/dato/dump/format/json.rb
dato-0.4.2 lib/dato/dump/format/json.rb
dato-0.4.1 lib/dato/dump/format/json.rb
dato-0.4.0 lib/dato/dump/format/json.rb
dato-0.3.31 lib/dato/dump/format/json.rb
dato-0.4.0.pre lib/dato/dump/format/json.rb
dato-0.3.30 lib/dato/dump/format/json.rb
dato-0.3.29 lib/dato/dump/format/json.rb