# File lib/soap/element.rb, line 240 def initialize(header = nil, body = nil) super() @type = nil @elename = EleEnvelopeName @encodingstyle = nil @header = header @body = body @external_content = {} header.parent = self if header body.parent = self if body end
# File lib/soap/element.rb, line 257 def body=(body) body.parent = self @body = body end
# File lib/soap/element.rb, line 262 def encode(generator, ns, attrs = {}) Generator.assign_ns(attrs, ns, elename.namespace) name = ns.name(@elename) generator.encode_tag(name, attrs) yield(@header) if @header and @header.encode? yield(@body) generator.encode_tag_end(name, true) end
Generated with the Darkfish Rdoc Generator 2.