Sha256: 63d58c36f5b985a56bce23d32889cd0a216edf27a45b3f17f2c9c6eee1564ccf
Contents?: true
Size: 384 Bytes
Versions: 1
Compression:
Stored size: 384 Bytes
Contents
# lib/lutaml/model/toml_adapter/toml_rb_adapter.rb require "toml-rb" require_relative "../toml_adapter" module Lutaml module Model module TomlAdapter class TomlRbDocument < Document def self.parse(toml) data = TomlRB.parse(toml) new(data) end def to_toml(*) TomlRB.dump(to_h) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lutaml-model-0.3.1 | lib/lutaml/model/toml_adapter/toml_rb_adapter.rb |