Parent

Methods

Files

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 lib/wsdl/xmlSchema/xsd2ruby.rb, line 41
def initialize
  @location = nil
  @opt = {}
  @logger = Logger.new(STDERR)
  @basedir = nil
  @xsd = nil
  @name = nil
  @name_creator = WSDL::SOAP::ClassNameCreator.new
end

Public Instance Methods

run() click to toggle source
# File lib/wsdl/xmlSchema/xsd2ruby.rb, line 30
def run
  unless @location
    raise RuntimeError, "XML Schema location not given"
  end
  @xsd = import(@location)
  @name = @opt['classdef'] || create_classname(@xsd)
  create_file
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.