convert objective-c code to rubymotion