class NSIndexSet

Public Instance Methods

to_a() click to toggle source
# File lib/cocoa/sugarcube-foundation/nsindexset.rb, line 2
def to_a
  a = []
  self.enumerateIndexesUsingBlock(
    lambda do |idx, stop_ptr|
      a << idx
    end
  )
  a
end