31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# File 'lib/wsdl/soap/servantSkeltonCreator.rb', line 31
def dump(porttype = nil)
result = ""
if @modulepath
result << "\n"
modulepath = @modulepath.respond_to?(:lines) ? @modulepath.lines : @modulepath result << modulepath.collect { |ele| "module #{ele}" }.join("; ")
result << "\n\n"
end
if porttype.nil?
@definitions.porttypes.each do |porttype|
result << dump_porttype(porttype)
result << "\n"
end
else
result << dump_porttype(porttype)
end
if @modulepath
result << "\n\n"
modulepath = @modulepath.respond_to?(:lines) ? @modulepath.lines : @modulepath result << modulepath.collect { |ele| "end" }.join("; ")
result << "\n"
end
result
end
|