Sha256: e6dba9296d2f3423e874c67a1e8c7aca12fe13a4cf367ae4447844c90bc52f6f

Contents?: true

Size: 463 Bytes

Versions: 1

Compression:

Stored size: 463 Bytes

Contents

module XsdModel
  module Elements
    class Import
      include BaseElement
      #TODO: why isn't this picked up from BaseElement where it's also extended?
      extend AttributeMethods

      attribute_method :namespace, 'schemaLocation'

      def load(options = {})
        xml_string = File.read(schema_location)

        schema = XsdModel.parse(xml_string, options).schema
        schema.source = schema_location
        schema
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xsd_model-0.7.0 lib/xsd_model/elements/import.rb