# File lib/soap/element.rb, line 157 157: def initialize(element, mustunderstand = true, encodingstyle = nil, actor = nil) 158: super() 159: @type = nil 160: @element = element 161: @mustunderstand = mustunderstand 162: @encodingstyle = encodingstyle 163: @actor = actor 164: element.parent = self if element 165: element.qualified = true 166: end
# File lib/soap/element.rb, line 168 168: def encode(generator, ns, attrs = {}) 169: attrs.each do |key, value| 170: @element.extraattr[key] = value 171: end 172: # to remove mustUnderstand attribute, set it to nil 173: unless @mustunderstand.nil? 174: @element.extraattr[AttrMustUnderstandName] = (@mustunderstand ? '1' : '0') 175: end 176: if @encodingstyle 177: @element.extraattr[AttrEncodingStyleName] = @encodingstyle 178: end 179: unless @element.encodingstyle 180: @element.encodingstyle = @encodingstyle 181: end 182: if @actor 183: @element.extraattr[AttrActorName] = @actor 184: end 185: yield(@element) 186: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.