module Dato::Dump::Format::Toml

Public Class Methods

dump(value) click to toggle source
# File lib/dato/dump/format/toml.rb, line 22
def self.dump(value)
  TOML::Generator.new(value).body
end
frontmatter_dump(value) click to toggle source
# File lib/dato/dump/format/toml.rb, line 26
def self.frontmatter_dump(value)
  "+++\n#{dump(value)}+++"
end