lib/lutaml/model/toml_adapter/tomlib_adapter.rb in lutaml-model-0.1.0 vs lib/lutaml/model/toml_adapter/tomlib_adapter.rb in lutaml-model-0.2.1
- old
+ new
@@ -5,15 +5,16 @@
module Lutaml
module Model
module TomlAdapter
class TomlibDocument < Document
def self.parse(toml)
- data = Tomlib::Parser.new(toml).parsed
+ data = Tomlib.load(toml)
new(data)
end
def to_toml(*args)
- Tomlib::Generator.new(to_h).toml_str
+ Tomlib.dump(to_h, *args)
+ # Tomlib::Generator.new(to_h).toml_str
end
end
end
end
end