Class: WSDL::SOAP::ServantSkeltonCreator
- Inherits:
-
Object
- Object
- 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) ⇒ ServantSkeltonCreator
constructor
A new instance of ServantSkeltonCreator.
Methods included from ClassDefCreatorSupport
#basetype_mapped_class, #create_class_name, #dq, #dqname, #dump_method_signature, #ndq, #sym
Constructor Details
#initialize(definitions) ⇒ ServantSkeltonCreator
Returns a new instance of ServantSkeltonCreator.
24 25 26 |
# File 'lib/wsdl/soap/servantSkeltonCreator.rb', line 24 def initialize(definitions) @definitions = definitions 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
28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/wsdl/soap/servantSkeltonCreator.rb', line 28 def dump(porttype = nil) if porttype.nil? result = "" @definitions.porttypes.each do |type| result << dump_porttype(type.name) result << "\n" end else result = dump_porttype(porttype) end result end |