Sha256: dc3fa955571666bb11bf665afd30662c3991e73438b03263f25ab38e5a8b4a78
Contents?: true
Size: 392 Bytes
Versions: 27
Compression:
Stored size: 392 Bytes
Contents
require "tomlib" require_relative "toml_document" module Lutaml module Model module TomlAdapter class TomlibAdapter < TomlDocument def self.parse(toml) data = Tomlib.load(toml) new(data) end def to_toml(*args) Tomlib.dump(to_h, *args) # Tomlib::Generator.new(to_h).toml_str end end end end end
Version data entries
27 entries across 27 versions & 1 rubygems