Class: XsdModel::Elements::Include
- Inherits:
-
Object
- Object
- XsdModel::Elements::Include
- Extended by:
- AttributeMethods
- Includes:
- BaseElement
- Defined in:
- lib/xsd_model/elements/include.rb
Constant Summary
Constants included from BaseElement
Instance Attribute Summary
Attributes included from BaseElement
#attributes, #children, #css_path, #namespaces
Instance Method Summary collapse
Methods included from AttributeMethods
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 15 16 |
# File 'lib/xsd_model/elements/include.rb', line 10 def load( = {}) xml_string = File.read(schema_location) schema = XsdModel.parse(xml_string, ).schema schema.source = schema_location schema end |