Sha256: 127bdde58b10b5ea82525004ab829cf3e77dd9ef80d4f3189a97238b75fe0e84
Contents?: true
Size: 520 Bytes
Versions: 13
Compression:
Stored size: 520 Bytes
Contents
# frozen_string_literal: true require 'dato/dump/format/toml' require 'dato/dump/format/yaml' module Dato module Dump module Format def self.dump(format, value) converter_for(format).dump(value) end def self.frontmatter_dump(format, value) converter_for(format).frontmatter_dump(value) end def self.converter_for(format) case format when :toml Format::Toml when :yaml Format::Yaml end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems