Class: Lutaml::Model::TomlAdapter::TomlDocument

Inherits:
TomlObject
  • Object
show all
Defined in:
lib/lutaml/model/toml_adapter/toml_document.rb

Overview

Base class for TOML documents

Direct Known Subclasses

TomlRbAdapter, TomlibAdapter

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

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/lutaml/model/toml_adapter/toml_document.rb', line 10

def self.parse(toml, _options = {})
  raise NotImplementedError, "Subclasses must implement `parse`."
end

Instance Method Details

#to_toml(*args) ⇒ Object

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/lutaml/model/toml_adapter/toml_document.rb', line 14

def to_toml(*args)
  raise NotImplementedError, "Subclasses must implement `to_toml`."
end