Class: Lutaml::Model::TomlAdapter::TomlRbAdapter

Inherits:
TomlDocument show all
Defined in:
lib/lutaml/model/toml_adapter/toml_rb_adapter.rb

Instance Attribute Summary

Attributes inherited from TomlObject

#attributes

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, _options = {}) ⇒ Object



8
9
10
# File 'lib/lutaml/model/toml_adapter/toml_rb_adapter.rb', line 8

def self.parse(toml, _options = {})
  TomlRB.parse(toml)
end

Instance Method Details

#to_tomlObject



12
13
14
# File 'lib/lutaml/model/toml_adapter/toml_rb_adapter.rb', line 12

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