lib/wsdl/soap/clientSkeltonCreator.rb in rubyjedi-soap4r-1.5.8.01 vs lib/wsdl/soap/clientSkeltonCreator.rb in rubyjedi-soap4r-1.5.8.20100616125722
- old
+ new
@@ -31,19 +31,21 @@
raise RuntimeError.new("service not defined: #{service_name}")
end
result = ""
if @modulepath
result << "\n"
- result << @modulepath.collect { |ele| "module #{ele}" }.join("; ")
+ modulepath = @modulepath.respond_to?(:lines) ? @modulepath.lines : @modulepath # RubyJedi: compatible with Ruby 1.8.6 and above
+ result << modulepath.collect { |ele| "module #{ele}" }.join("; ")
result << "\n\n"
end
services.ports.each do |port|
result << dump_porttype(port.porttype)
result << "\n"
end
if @modulepath
result << "\n\n"
- result << @modulepath.collect { |ele| "end" }.join("; ")
+ modulepath = @modulepath.respond_to?(:lines) ? @modulepath.lines : @modulepath # RubyJedi: compatible with Ruby 1.8.6 and above
+ result << modulepath.collect { |ele| "end" }.join("; ")
result << "\n"
end
result
end