Flowdock
method

encode_tag

Importance_0
v1_8_7_330 - Show latest stable - 0 notes - Class: SOAP::SOAPGenerator
encode_tag(elename, attrs = 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 158
  def encode_tag(elename, attrs = nil)
    if !attrs or attrs.empty?
      @buf << "\n#{ @indent }<#{ elename }>"
    elsif attrs.size == 1
      key, value = attrs.shift
      @buf << %Q[\n#{ @indent }<#{ elename } #{ key }="#{ value }">]
    else
      @buf << "\n#{ @indent }<#{ elename } " <<
        attrs.collect { |key, value|
          %Q[#{ key }="#{ value }"]
        }.join("\n#{ @indent }#{ @indentstr * 2 }") <<
        '>'
    end
  end
Register or log in to add new notes.