RubyMotion is a tool that allows developers to build iOS and Android mobile apps using the Ruby programming language. It works by compiling Ruby code into native apps using its own compiler built on LLVM. RubyMotion provides access to native SDKs and frameworks so Ruby code can utilize the same APIs as Objective-C, Java, and Swift. It aims to improve developer productivity by allowing coding in a popular dynamic language like Ruby while targeting multiple platforms from a single codebase.