Module: Agave::Dump::Format::Toml

Defined in:
lib/agave/dump/format/toml.rb

Class Method Summary collapse

Class Method Details

.dump(value) ⇒ Object



21
22
23
# File 'lib/agave/dump/format/toml.rb', line 21

def self.dump(value)
  TOML::Generator.new(value).body
end

.frontmatter_dump(value) ⇒ Object



25
26
27
# File 'lib/agave/dump/format/toml.rb', line 25

def self.frontmatter_dump(value)
  "+++\n#{dump(value)}+++"
end