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

In Files

  • wsdl/soap/classDefCreator.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

WSDL::SOAP::ClassDefCreator

Public Class Methods

new(definitions) click to toggle source
 
               # File wsdl/soap/classDefCreator.rb, line 21
def initialize(definitions)
  @elements = definitions.collect_elements
  @simpletypes = definitions.collect_simpletypes
  @complextypes = definitions.collect_complextypes
  @faulttypes = nil
  if definitions.respond_to?(:collect_faulttypes)
    @faulttypes = definitions.collect_faulttypes
  end
end
            

Public Instance Methods

dump(type = nil) click to toggle source
 
               # File wsdl/soap/classDefCreator.rb, line 31
def dump(type = nil)
  result = "require 'xsd/qname'\n"
  if type
    result = dump_classdef(type.name, type)
  else
    str = dump_element
    unless str.empty?
      result << "\n" unless result.empty?
      result << str
    end
    str = dump_complextype
    unless str.empty?
      result << "\n" unless result.empty?
      result << str
    end
    str = dump_simpletype
    unless str.empty?
      result << "\n" unless result.empty?
      result << str
    end
  end
  result
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus