Sha256: 626c2b7942b5d16f1a0cc28c470c85cd7dd980a03621c37f11a159ad82928825

Contents?: true

Size: 465 Bytes

Versions: 6

Compression:

Stored size: 465 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, _options = {})
          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

6 entries across 6 versions & 1 rubygems

Version Path
lutaml-model-0.5.3 lib/lutaml/model/yaml_adapter/yaml_document.rb
lutaml-model-0.5.2 lib/lutaml/model/yaml_adapter/yaml_document.rb
lutaml-model-0.5.1 lib/lutaml/model/yaml_adapter/yaml_document.rb
lutaml-model-0.5.0 lib/lutaml/model/yaml_adapter/yaml_document.rb
lutaml-model-0.4.0 lib/lutaml/model/yaml_adapter/yaml_document.rb
lutaml-model-0.3.30 lib/lutaml/model/yaml_adapter/yaml_document.rb