# lib/lutaml/model/toml_adapter/tomlib_adapter.rb require "tomlib" require_relative "../toml_adapter" module Lutaml module Model module TomlAdapter class TomlibDocument < Document def self.parse(toml) data = Tomlib::Parser.new(toml).parsed new(data) end def to_toml(*args) Tomlib::Generator.new(to_h).toml_str end end end end end