RubyMotion code snippets