Parent

Files

Class/Module Index [+]

Quicksearch

WSDL::XMLSchema::Importer

Constants

DO_NOT_IMPORT

Public Class Methods

import(location, originalroot = nil) click to toggle source
# File lib/wsdl/xmlSchema/importer.rb, line 21
def self.import(location, originalroot = nil)
  new.import(location, originalroot)
end
new() click to toggle source
# File lib/wsdl/xmlSchema/importer.rb, line 25
def initialize
  @web_client = nil
end

Public Instance Methods

import(location, originalroot = nil) click to toggle source
# File lib/wsdl/xmlSchema/importer.rb, line 29
def import(location, originalroot = nil)
  if DO_NOT_IMPORT.include?(location.to_s)
    return nil
  end
  unless location.is_a?(URI)
    location = URI.parse(location)
  end
  source, normalizedlocation = fetch(location)
  content = parse(source, normalizedlocation, originalroot)
  content.location = normalizedlocation
  content
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.