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
-
#simple_type ⇒ Object
Get child/linked simple type.
Class Method Summary collapse
-
.included(obj) ⇒ Object
Get child/linked simple type.
Instance Attribute Details
#simple_type ⇒ Object
Get child/linked simple type
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
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 |