Class: WSDL::SOAP::ServantSkeltonCreator
- Includes:
- ClassDefCreatorSupport, XSD::CodeGen::GenSupport
- Defined in:
- lib/wsdl/soap/servantSkeltonCreator.rb
Instance Attribute Summary collapse
-
#definitions ⇒ Object
readonly
Returns the value of attribute definitions.
Instance Method Summary collapse
- #dump(porttype = nil) ⇒ Object
-
#initialize(definitions, name_creator, modulepath = nil) ⇒ ServantSkeltonCreator
constructor
A new instance of ServantSkeltonCreator.
Methods included from XSD::CodeGen::GenSupport
capitalize, constant?, #format, keyword?, safeconstname, safeconstname?, safemethodname, safemethodname?, safevarname, safevarname?, uncapitalize
Methods included from ClassDefCreatorSupport
#assign_const, #basetype_mapped_class, #create_type_name, #dq, #dqname, #dump_method_signature, #mapped_class_basename, #mapped_class_name, #ndq, #nsym, #sym
Constructor Details
#initialize(definitions, name_creator, modulepath = nil) ⇒ ServantSkeltonCreator
Returns a new instance of ServantSkeltonCreator.
24 25 26 27 28 |
# File 'lib/wsdl/soap/servantSkeltonCreator.rb', line 24 def initialize(definitions, name_creator, modulepath = nil) @definitions = definitions @name_creator = name_creator @modulepath = modulepath end |
Instance Attribute Details
#definitions ⇒ Object (readonly)
Returns the value of attribute definitions.
22 23 24 |
# File 'lib/wsdl/soap/servantSkeltonCreator.rb', line 22 def definitions @definitions end |
Instance Method Details
#dump(porttype = nil) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/wsdl/soap/servantSkeltonCreator.rb', line 30 def dump(porttype = nil) result = "" if @modulepath result << "\n" result << @modulepath.collect { |ele| "module #{ele}" }.join("; ") result << "\n\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\n" result << @modulepath.collect { |ele| "end" }.join("; ") result << "\n" end result end |