Sha256: 1311fb7cdee7c13d26f323ea95aa4d6d67571c044d02a0f72881c4302f980506

Contents?: true

Size: 452 Bytes

Versions: 1

Compression:

Stored size: 452 Bytes

Contents

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

      attribute_method '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/include.rb