Sha256: 80dbfd4261fd06d10e634d4bcaa0d45fe5e4c0a2c4963e9a522729da51a9443f

Contents?: true

Size: 357 Bytes

Versions: 4

Compression:

Stored size: 357 Bytes

Contents

module XsdReader
  class Extension
    include Shared

    def linked_complex_type
      @linked_complex_type ||= (schema_for_namespace(base_namespace) || schema).complex_types.find{|ct| ct.name == (base_name)}
    end

    def ordered_elements
      (linked_complex_type ? linked_complex_type.ordered_elements : []) + super
    end
  end # class Schema
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
xsd-reader-0.4.0 lib/xsd_reader/extension.rb
xsd-reader-0.3.0 lib/xsd_reader/extension.rb
xsd-reader-0.2.0 lib/xsd_reader/extension.rb
xsd-reader-0.1.0 lib/xsd_reader/extension.rb