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