Sha256: f3d3b13addecbe96f29e6a9bc55036b6f2c5c3a07ac3739e5c6dd6f8a024cc87

Contents?: true

Size: 399 Bytes

Versions: 2

Compression:

Stored size: 399 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)

        XsdModel.parse(xml_string, options).schema
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
xsd_model-0.6.0 lib/xsd_model/elements/import.rb
xsd_model-0.5.0 lib/xsd_model/elements/import.rb