Class: XsdModel::Elements::Import

Inherits:
Object
  • Object
show all
Extended by:
AttributeMethods
Includes:
BaseElement
Defined in:
lib/xsd_model/elements/import.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

#load(options = {}) ⇒ Object



10
11
12
13
14
# File 'lib/xsd_model/elements/import.rb', line 10

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

  XsdModel.parse(xml_string, options).schema
end