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.29 lib/lutaml/model/toml_adapter/toml_document.rb
lutaml-model-0.3.28 lib/lutaml/model/toml_adapter/toml_document.rb
lutaml-model-0.3.27 lib/lutaml/model/toml_adapter/toml_document.rb
lutaml-model-0.3.26 lib/lutaml/model/toml_adapter/toml_document.rb
lutaml-model-0.3.25 lib/lutaml/model/toml_adapter/toml_document.rb
lutaml-model-0.3.24 lib/lutaml/model/toml_adapter/toml_document.rb
lutaml-model-0.3.23 lib/lutaml/model/toml_adapter/toml_document.rb
lutaml-model-0.3.22 lib/lutaml/model/toml_adapter/toml_document.rb
lutaml-model-0.3.21 lib/lutaml/model/toml_adapter/toml_document.rb
lutaml-model-0.3.20 lib/lutaml/model/toml_adapter/toml_document.rb
lutaml-model-0.3.19 lib/lutaml/model/toml_adapter/toml_document.rb
lutaml-model-0.3.18 lib/lutaml/model/toml_adapter/toml_document.rb
lutaml-model-0.3.17 lib/lutaml/model/toml_adapter/toml_document.rb
lutaml-model-0.3.16 lib/lutaml/model/toml_adapter/toml_document.rb
lutaml-model-0.3.15 lib/lutaml/model/toml_adapter/toml_document.rb
lutaml-model-0.3.14 lib/lutaml/model/toml_adapter/toml_document.rb
lutaml-model-0.3.13 lib/lutaml/model/toml_adapter/toml_document.rb
lutaml-model-0.3.12 lib/lutaml/model/toml_adapter/toml_document.rb
lutaml-model-0.3.11 lib/lutaml/model/toml_adapter/toml_document.rb
lutaml-model-0.3.10 lib/lutaml/model/toml_adapter/toml_document.rb