# # RubyStuff.rb # PyRu # # Created by Bill Bumgarner on 11/24/07. # Copyright (c) 2007 __MyCompanyName__. All rights reserved. # require 'osx/cocoa' class RubyStuff < OSX::NSObject def getStuff(someOtherStuff) x = ['Rectangles', 'Circles', 'Bezier Paths', 'Circle Clipping'] # Can't treat someOtherStuff like a Ruby array; it doesn't transparently bridge OC_PythonArray it seems someOtherStuff.each {|item| x.insert(0, item)} return x end end