Sha256: d6255f107ab136c4eaff0221af325ab04392ea82448ebebd784a508528523309

Contents?: true

Size: 378 Bytes

Versions: 4

Compression:

Stored size: 378 Bytes

Contents

# frozen_string_literal: true

module Lutaml
  module Model
    module XmlAdapter
      module Oga
        class Document < ::Oga::XML::Document
          def initialize(options = {})
            super
          end

          def text(value = nil)
            children << ::Oga::XML::Text.new(text: value)
            self
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lutaml-model-0.5.3 lib/lutaml/model/xml_adapter/oga/document.rb
lutaml-model-0.5.2 lib/lutaml/model/xml_adapter/oga/document.rb
lutaml-model-0.5.1 lib/lutaml/model/xml_adapter/oga/document.rb
lutaml-model-0.5.0 lib/lutaml/model/xml_adapter/oga/document.rb