Flowdock
method

soap2array

Importance_0
Ruby latest stable (v2_5_5) - 0 notes - Class: SOAP::SOAPArray

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.

soap2array(ary) public

No documentation

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

Hide source
# File lib/soap/baseData.rb, line 818
  def soap2array(ary)
    traverse_data(@data) do |v, *position|
      iteary = ary
      rank = 1
      while rank < position.size
        idx = position[rank - 1]
        if iteary[idx].nil?
          iteary = iteary[idx] = Array.new
        else
          iteary = iteary[idx]
        end
        rank += 1
      end
      if block_given?
        iteary[position.last] = yield(v)
      else
        iteary[position.last] = v
      end
    end
  end
Register or log in to add new notes.