You must be wondering how Objective-C and Ruby can work together, as Objective-C is a compiled language and Ruby is an interpreted language. Then how come they work together in RubyMotion?
In reality, Objective-C in the iOS SDK not only has a compiler, but also has a runtime system to execute the compiled code. This runtime system acts as an interface for the Objective-C language; this is what makes the language work. RubyMotion takes advantage of the Objective-C runtime and our Ruby code interacts through this runtime system in just the same way as an Objective-C code does. That means Ruby and Objective-C are effectively working on top of the Objective-C runtime.

The preceding diagram represents the way RubyMotion and Objective-C work together in an iOS SDK ecosystem. In simple terms, this means we can access all iOS SDK classes with RubyMotion through the Objective-C runtime. The Foundation Framework is an Objective-C framework, but the great news is...