Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

In Files

  • wsdl/xmlSchema/xsd2ruby.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

WSDL::XMLSchema::XSD2Ruby

Attributes

basedir[RW]
location[RW]
logger[RW]
opt[R]

Public Class Methods

new() click to toggle source
 
               # File wsdl/xmlSchema/xsd2ruby.rb, line 35
def initialize
  @location = nil
  @opt = {}
  @logger = Logger.new(STDERR)
  @basedir = nil
  @xsd = nil
  @name = nil
end
            

Public Instance Methods

run() click to toggle source
 
               # File wsdl/xmlSchema/xsd2ruby.rb, line 24
def run
  unless @location
    raise RuntimeError, "XML Schema location not given"
  end
  @xsd = import(@location)
  @name = create_classname(@xsd)
  create_file
end