lib/lutaml/model/toml_adapter/toml_rb_adapter.rb



require "toml-rb"
require_relative "toml_document"

module Lutaml
  module Model
    module TomlAdapter
      class TomlRbAdapter < TomlDocument
        def self.parse(toml, _options = {})
          TomlRB.parse(toml)
        end

        def to_toml(*)
          TomlRB.dump(to_h)
        end
      end
    end
  end
end