Parent

Methods

Files

Class/Module Index [+]

Quicksearch

WSDL::SOAP::DriverCreator

Attributes

definitions[R]
drivername_postfix[RW]

Public Class Methods

new(definitions, name_creator, modulepath = nil) click to toggle source
# File lib/wsdl/soap/driverCreator.rb, line 26
def initialize(definitions, name_creator, modulepath = nil)
  @definitions = definitions
  @name_creator = name_creator
  @modulepath = modulepath
  @drivername_postfix = ''
end

Public Instance Methods

dump(porttype = nil) click to toggle source
# File lib/wsdl/soap/driverCreator.rb, line 33
def dump(porttype = nil)
  result = "require 'soap/rpc/driver'\n\n"
  if @modulepath
    @modulepath.each do |name|
      result << "module #{name}\n"
    end
    result << "\n"
  end
  if porttype.nil?
    @definitions.porttypes.each do |type|
      result << dump_porttype(type.name)
      result << "\n"
    end
  else
    result << dump_porttype(porttype)
  end
  if @modulepath
    result << "\n"
    @modulepath.each do |name|
      result << "end\n"
    end
  end
  result
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.