Flowdock
method

[]

Importance_0
v1_8_7_330 - Show latest stable - 0 notes - Class: SOAP::SOAPStruct
[](idx) 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 419
  def [](idx)
    if idx.is_a?(Range)
      @data[idx]
    elsif idx.is_a?(Integer)
      if (idx > @array.size)
        raise ArrayIndexOutOfBoundsError.new('In ' << @type.name)
      end
      @data[idx]
    else
      if @array.include?(idx)
        @data[@array.index(idx)]
      else
        nil
      end
    end
  end
Register or log in to add new notes.