Sugarcube papers over the ridiculously verbosity of iOS's APIs so you can feel like you're writing ruby again:
replaces the default RubyMotion way to open a URL:
If you were slogging away in Objective-C, you'd end up writing this beauty:
NSURL *url = [ [ NSURL alloc ] initWithString: @"http://www.cnn.com" ]; [[UIApplication sharedApplication] openURL:url];
Sugarcube includes UIKit helpers, type transforms, constants, REPL helpers, CoreGraphics, and more--there are three great sources that, together, document all of this:
The original author's overview is a great place to start.
The README on github goes deeper.
For docs on all the methods see the RubyDoc pages, e.g. UIImage on RubyDoc
Scale an image
"my_image".uiimage.scale_to [37, 37].
Slide a view smoothly to the left?
Quickly post a notification:
Put a text label into a view in one line
view << ('Goodbye'.italic + ' cruel world.').underline.uilabel.