Module: XSD::SimpleTyped

Included in:
Attribute, Element, List, Restriction
Defined in:
lib/xsd/shared/simple_typed.rb

Overview

Provides object an ability to have simple type (nested or linked)

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#simple_typeObject

Get child/linked simple type

Returns:

  • SimpleType, nil



9
10
11
12
# File 'lib/xsd/shared/simple_typed.rb', line 9

def self.included(obj)
  obj.child :simple_type, :simpleType
  obj.link :simple_type, :simpleType, property: obj::TYPE_PROPERTY
end

Class Method Details

.included(obj) ⇒ Object

Get child/linked simple type

Returns:

  • SimpleType, nil



9
10
11
12
# File 'lib/xsd/shared/simple_typed.rb', line 9

def self.included(obj)
  obj.child :simple_type, :simpleType
  obj.link :simple_type, :simpleType, property: obj::TYPE_PROPERTY
end