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

In Files

  • wsdl/soap/classDefCreatorSupport.rb

Included Modules

Class/Module Index [+]

Quicksearch

WSDL::SOAP::ClassDefCreatorSupport

Public Instance Methods

basetype_mapped_class(name) click to toggle source
 
               # File wsdl/soap/classDefCreatorSupport.rb, line 30
def basetype_mapped_class(name)
  ::SOAP::TypeMap[name]
end
            
create_class_name(qname) click to toggle source
 
               # File wsdl/soap/classDefCreatorSupport.rb, line 22
def create_class_name(qname)
  if klass = basetype_mapped_class(qname)
    ::SOAP::Mapping::DefaultRegistry.find_mapped_obj_class(klass).name
  else
    safeconstname(qname.name)
  end
end
            
dq(ele) click to toggle source
 
               # File wsdl/soap/classDefCreatorSupport.rb, line 62
def dq(ele)
  ele.dump
end
            
dqname(qname) click to toggle source
 
               # File wsdl/soap/classDefCreatorSupport.rb, line 74
def dqname(qname)
  qname.dump
end
            
dump_method_signature(operation) click to toggle source
 
               # File wsdl/soap/classDefCreatorSupport.rb, line 34
  def dump_method_signature(operation)
    name = operation.name.name
    input = operation.input
    output = operation.output
    fault = operation.fault
    signature = "#{ name }#{ dump_inputparam(input) }"
    str = <<__EOD__
# SYNOPSIS
#   #{name}#{dump_inputparam(input)}
#
# ARGS
#{dump_inout_type(input).chomp}
#
# RETURNS
#{dump_inout_type(output).chomp}
#
__EOD__
    unless fault.empty?
      faultstr = (fault.collect { |f| dump_inout_type(f).chomp }).join(', ')
      str <<<<__EOD__
# RAISES
#   #{faultstr}
#
__EOD__
    end
    str
  end
            
ndq(ele) click to toggle source
 
               # File wsdl/soap/classDefCreatorSupport.rb, line 66
def ndq(ele)
  ele.nil? ? 'nil' : dq(ele)
end
            
sym(ele) click to toggle source
 
               # File wsdl/soap/classDefCreatorSupport.rb, line 70
def sym(ele)
  ':' + ele
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