This document describes the process Ruby code goes through before being executed: 1. Tokenization breaks the code into individual tokens like integers, identifiers, keywords. 2. Parsing uses grammar rules to organize the tokens into an abstract syntax tree (AST) that represents the code structure. 3. Compilation converts the AST into bytecode that the Ruby virtual machine (YARV) can execute for improved performance over interpreting the AST directly.