class WSDL::SOAP::EncodedMappingRegistryCreator
Attributes
definitions[R]
Public Class Methods
new(definitions, name_creator, modulepath, defined_const)
click to toggle source
# File lib/wsdl/soap/encodedMappingRegistryCreator.rb, line 22 def initialize(definitions, name_creator, modulepath, defined_const) @definitions = definitions @name_creator = name_creator @modulepath = modulepath @simpletypes = definitions.collect_simpletypes @simpletypes.uniq! @complextypes = definitions.collect_complextypes @complextypes.uniq! @varname = nil @defined_const = defined_const end
Public Instance Methods
dump(varname)
click to toggle source
# File lib/wsdl/soap/encodedMappingRegistryCreator.rb, line 34 def dump(varname) @varname = varname result = '' 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 result end
Private Instance Methods
dump_complextype()
click to toggle source
# File lib/wsdl/soap/encodedMappingRegistryCreator.rb, line 52 def dump_complextype @complextypes.collect { |type| unless type.abstract dump_with_inner { dump_complextypedef(@modulepath, type.name, type, nil, :encoded => true) } end }.compact.join("\n") end
dump_simpletype()
click to toggle source
# File lib/wsdl/soap/encodedMappingRegistryCreator.rb, line 62 def dump_simpletype @simpletypes.collect { |type| dump_with_inner { dump_simpletypedef(@modulepath, type.name, type, nil, :encoded => true) } }.compact.join("\n") end