Class: Lutaml::Model::TomlAdapter::TomlRbDocument
- Inherits:
-
Document
- Object
- TomlObject
- Document
- Lutaml::Model::TomlAdapter::TomlRbDocument
- Defined in:
- lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
Instance Attribute Summary
Attributes inherited from TomlObject
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from TomlObject
#[], #[]=, #initialize, #to_h
Constructor Details
This class inherits a constructor from Lutaml::Model::TomlAdapter::TomlObject
Class Method Details
.parse(toml) ⇒ Object
9 10 11 12 |
# File 'lib/lutaml/model/toml_adapter/toml_rb_adapter.rb', line 9 def self.parse(toml) data = TomlRB.parse(toml) new(data) end |
Instance Method Details
#to_toml(*args) ⇒ Object
14 15 16 |
# File 'lib/lutaml/model/toml_adapter/toml_rb_adapter.rb', line 14 def to_toml(*args) TomlRB.dump(to_h, *args) end |