Sha256: 8ddf46b8362b85b896f194a7ed57f560e0260ceac57b44f5285d270ad7e6cffe
Contents?: true
Size: 1.03 KB
Versions: 2
Compression:
Stored size: 1.03 KB
Contents
require_relative "mapping_rule" module Lutaml module Model class XmlMappingRule < MappingRule attr_reader :namespace, :prefix def initialize( name, to:, render_nil: false, with: {}, delegate: nil, namespace: nil, prefix: nil, mixed_content: false, namespace_set: false, prefix_set: false, default_namespace: nil ) super( name, to: to, render_nil: render_nil, with: with, delegate: delegate, mixed_content: mixed_content, namespace_set: namespace_set, prefix_set: prefix_set, default_namespace: default_namespace ) @namespace = if namespace.to_s == "inherit" # we are using inherit_namespace in xml builder by # default so no need to do anything here. else namespace end @prefix = prefix end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lutaml-model-0.3.13 | lib/lutaml/model/xml_mapping_rule.rb |
lutaml-model-0.3.12 | lib/lutaml/model/xml_mapping_rule.rb |