Sha256: 8ba0838282f50df878c811133cfad346cf8b68590f0c8c9165666e7aa723e45b

Contents?: true

Size: 450 Bytes

Versions: 28

Compression:

Stored size: 450 Bytes

Contents

# frozen_string_literal: true

require_relative "toml_object"

module Lutaml
  module Model
    module TomlAdapter
      # Base class for TOML documents
      class TomlDocument < TomlObject
        def self.parse(toml)
          raise NotImplementedError, "Subclasses must implement `parse`."
        end

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

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
lutaml-model-0.3.9 lib/lutaml/model/toml_adapter/toml_document.rb
lutaml-model-0.3.8 lib/lutaml/model/toml_adapter/toml_document.rb
lutaml-model-0.3.7 lib/lutaml/model/toml_adapter/toml_document.rb
lutaml-model-0.3.6 lib/lutaml/model/toml_adapter/toml_document.rb
lutaml-model-0.3.5 lib/lutaml/model/toml_adapter/toml_document.rb
lutaml-model-0.3.4 lib/lutaml/model/toml_adapter/toml_document.rb
lutaml-model-0.3.3 lib/lutaml/model/toml_adapter/toml_document.rb
lutaml-model-0.3.2 lib/lutaml/model/toml_adapter/toml_document.rb