3 ms·
Are there any definitive resources to understand how Rails uses metaprogramming? I once failed in an attempt to understand the scope of metaprogramming in Ruby
by stephth 16y ago
Are there any definitive resources to understand how Rails uses metaprogramming? I once failed in an attempt to understand the scope of metaprogramming in Ruby by searching for information in the pickaxe book (but gave up way too soon to be fair).
- glenjamin 16y agoI'm not really sure, there's an O'reilly book "Metaprogramming Ruby" (http://oreilly.com/catalog/9781934356470 http://oreilly.com/catalog/9781934356470) which i flicked through once. It seemed to mostly dicuss how ActiveRecord works. At the point I had access to a copy I was already pretty familiar with the concepts, so can't really say how good the book actually is. I mostly picked things up by reading code and some blog posts whenever I came across an odd idiom.
- _pius 16y agoYou should check out The Well Grounded Rubyist. http://www.manning.com/black2/ http://www.manning.com/black2/