Sha256: c873a3d57028946209841fca0ac283eaec2df844a0fba59536777523efc5b64b

Contents?: true

Size: 288 Bytes

Versions: 26

Compression:

Stored size: 288 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

26 entries across 26 versions & 1 rubygems

Version Path
dato-0.8.0 lib/dato/dump/format/json.rb
dato-0.7.18 lib/dato/dump/format/json.rb
dato-0.7.17 lib/dato/dump/format/json.rb
dato-0.7.16 lib/dato/dump/format/json.rb
dato-0.7.15 lib/dato/dump/format/json.rb
dato-0.7.14 lib/dato/dump/format/json.rb
dato-0.7.13 lib/dato/dump/format/json.rb
dato-0.7.10 lib/dato/dump/format/json.rb
dato-0.7.9 lib/dato/dump/format/json.rb
dato-0.7.8 lib/dato/dump/format/json.rb
dato-0.7.7 lib/dato/dump/format/json.rb
dato-0.7.6 lib/dato/dump/format/json.rb
dato-0.7.5 lib/dato/dump/format/json.rb
dato-0.7.4 lib/dato/dump/format/json.rb
dato-0.7.3 lib/dato/dump/format/json.rb
dato-0.7.2 lib/dato/dump/format/json.rb
dato-0.7.1 lib/dato/dump/format/json.rb
dato-0.7.0 lib/dato/dump/format/json.rb
dato-0.6.18 lib/dato/dump/format/json.rb
dato-0.6.17 lib/dato/dump/format/json.rb