Flowdock
method

assign_ns

Importance_0
v1_8_7_330 - Show latest stable - 0 notes - Class: SOAP::SOAPGenerator
assign_ns(attrs, ns, namespace, tag = nil) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/soap/generator.rb, line 225
  def self.assign_ns(attrs, ns, namespace, tag = nil)
    if namespace.nil?
      raise FormatEncodeError.new("empty namespace")
    end
    unless ns.assigned?(namespace)
      tag = ns.assign(namespace, tag)
      if tag == ''
        attr = 'xmlns'
      else
        attr = "xmlns:#{tag}"
      end
      attrs[attr] = namespace
    end
  end
Register or log in to add new notes.