Module: XSD::Named
- Included in:
- Attribute, AttributeGroup, ComplexType, Element, Group, SimpleType
- Defined in:
- lib/xsd/shared/named.rb
Instance Method Summary collapse
-
#absolute_name ⇒ Object
Get absolute definition name.
-
#namespace ⇒ Object
Get definition namespace.
Instance Method Details
#absolute_name ⇒ Object
Get absolute definition name
13 14 15 |
# File 'lib/xsd/shared/named.rb', line 13 def absolute_name name ? "{#{namespace}}#{name}" : nil end |
#namespace ⇒ Object
Get definition namespace
7 8 9 |
# File 'lib/xsd/shared/named.rb', line 7 def namespace @namespace ||= (is_a?(Referenced) && referenced? ? reference.schema : schema).target_namespace end |