The official C implementation of the Ruby language, the ruby interpreter, is described in the book The Ruby Hacking Guide.
You must be well-versed in C and Ruby in order to completely comprehend it. This book will look into ruby as a whole.
This book highlights the important features that you'll probably use every day when coding Ruby and provides concise yet comprehensive explanations of each of Ruby's fundamental building blocks, including operators, reserved words, data structures, and method syntax.