Class: XsdModel::Elements::Extension

Inherits:
Object
  • Object
show all
Extended by:
AttributeMethods
Includes:
BaseElement
Defined in:
lib/xsd_model/elements/extension.rb

Constant Summary

Constants included from BaseElement

BaseElement::XSD_URI

Instance Attribute Summary

Attributes included from BaseElement

#attributes, #children, #namespaces

Instance Method Summary collapse

Methods included from AttributeMethods

attribute_method

Methods included from BaseElement

#==, #basic_xsd_type?, #element_name, #empty?, #has_custom_type?, #initialize, #method_missing, #name_with_prefix, #reverse_traverse, #type_with_prefix, #xmlns_prefix, #xmlns_uri, #xsd_prefix

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class XsdModel::Elements::BaseElement

Instance Method Details

#basic_xsd_extension?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/xsd_model/elements/extension.rb', line 10

def basic_xsd_extension?
  base.start_with?("#{xsd_prefix}:")
end

#custom_extension?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/xsd_model/elements/extension.rb', line 14

def custom_extension?
  !basic_xsd_extension?
end