Sha256: a97cf4c8c46f715be254f86ff8961d404fe879d305e415cd8df67f5ff71b1c0f
Contents?: true
Size: 533 Bytes
Versions: 31
Compression:
Stored size: 533 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.to_sym when :toml Format::Toml when :yaml, :yml Format::Yaml end end end end end
Version data entries
31 entries across 31 versions & 1 rubygems