Module: Lutaml::Xml::Type::Configurable

Included in:
Model::Type::Value
Defined in:
lib/lutaml/xml/type/configurable.rb

Overview

XML configuration concern for Type::Value classes

Include this module in Type::Value to provide XML configuration methods that support inheritance from parent types.

Examples:

Including in a Value type

class MyType < Lutaml::Model::Type::String
  include Lutaml::Xml::Type::Configurable

  xml do
    namespace MyNamespace
    xsd_type 'my:CustomType'
  end
end

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

Hook to extend including class with ClassMethods



23
24
25
# File 'lib/lutaml/xml/type/configurable.rb', line 23

def self.included(base)
  base.extend(ClassMethods)
end