background preloader

Ruby Language Ref

Facebook Twitter

Ruby MRI Source Code Idioms #1: Accessing Data Via Macros. Don’t be afraid of reading Ruby’s C source code.

Ruby MRI Source Code Idioms #1: Accessing Data Via Macros

If you’re a Ruby developer, it can be a lot of fun to see how things work “under the hood,” and studying Ruby internals can give you a deeper understanding of what Ruby really is and how to use it. A good way to get started looking at Ruby’s source code, to get a “lay of the land,” would be to watch Peter Cooper and I walk through some code in a screencast we recorded last month. However, you might be reluctant to read Ruby’s source code on your own since it’s written in C, a verbose, confusing low-level language that most of us don’t have time to learn.

Book Recommendations

Classes & Instances. Ruby-Doc.org: Documenting the Ruby Language. Bbatsov/ruby-style-guide. :symbols. The @ & @@