Sha256: 9de6a15ae0845140327fd5e49433d08708751247b9d8786bf71d58f78265e2e3

Contents?: true

Size: 450 Bytes

Versions: 28

Compression:

Stored size: 450 Bytes

Contents

# frozen_string_literal: true

require_relative "yaml_object"

module Lutaml
  module Model
    module YamlAdapter
      # Base class for YAML documents
      class YamlDocument < YamlObject
        def self.parse(yaml)
          raise NotImplementedError, "Subclasses must implement `parse`."
        end

        def to_yaml(*args)
          raise NotImplementedError, "Subclasses must implement `to_yaml`."
        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/yaml_adapter/yaml_document.rb
lutaml-model-0.3.8 lib/lutaml/model/yaml_adapter/yaml_document.rb
lutaml-model-0.3.7 lib/lutaml/model/yaml_adapter/yaml_document.rb
lutaml-model-0.3.6 lib/lutaml/model/yaml_adapter/yaml_document.rb
lutaml-model-0.3.5 lib/lutaml/model/yaml_adapter/yaml_document.rb
lutaml-model-0.3.4 lib/lutaml/model/yaml_adapter/yaml_document.rb
lutaml-model-0.3.3 lib/lutaml/model/yaml_adapter/yaml_document.rb
lutaml-model-0.3.2 lib/lutaml/model/yaml_adapter/yaml_document.rb