Sha256: 964efa796924063bb4a8fb1a3bfe2fa57ae9c688718937776a7f930c23eef38d

Contents?: true

Size: 203 Bytes

Versions: 69

Compression:

Stored size: 203 Bytes

Contents

class NSIndexPath

  def to_a
    indexes_ptr = Pointer.new(:uint, self.length)
    self.getIndexes indexes_ptr
    a = []
    self.length.times do |i|
      a << indexes_ptr[i]
    end
    a
  end

end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
sugarcube-1.1.0 lib/sugarcube-foundation/nsindexpath.rb
sugarcube-1.0.7 lib/sugarcube-foundation/nsindexpath.rb
sugarcube-1.0.6 lib/sugarcube-foundation/nsindexpath.rb
sugarcube-1.0.5 lib/sugarcube-foundation/nsindexpath.rb
sugarcube-1.0.4 lib/sugarcube-foundation/nsindexpath.rb
sugarcube-1.0.3 lib/sugarcube-foundation/nsindexpath.rb
sugarcube-1.0.2 lib/sugarcube-foundation/nsindexpath.rb
sugarcube-1.0.1 lib/sugarcube-foundation/nsindexpath.rb
sugarcube-1.0.0 lib/sugarcube-foundation/nsindexpath.rb