By Paolo Perrotta
Dig less than the skin and discover Ruby’s such a lot complicated characteristic: a suite of suggestions and methods referred to as metaprogramming. during this e-book, you’ll study metaprogramming as an integral part of Ruby and become aware of the deep, non-obvious information of the language. when you comprehend the tenets of Ruby, together with the thing version, scopes, and singleton periods, you’re in your technique to utilising metaprogramming either on your day-by-day paintings assignments and on your enjoyable, after-hours projects.
Metaprogramming Ruby, moment Edition makes getting to know the language stress-free. The booklet is packed with:
- Pragmatic examples of metaprogramming in motion, lots of which come instantly from real-life gem stones reminiscent of Rails.
- Programming demanding situations that allow you to scan and play with probably the most out-there metaprogramming concepts.
- Metaprogramming “spells”—33 functional recipes and idioms for you to examine and observe straight away, to put in writing code that's bound to impress.
This thoroughly revised new version covers the hot beneficial properties in Ruby 2.0 and 2.1, and includes code from the most recent Ruby libraries, together with Rails four. so much examples are new, “from the wild,” with more moderen libraries. And the publication displays present rules of while and what sort of metaprogramming you need to use.
Whether you’re a Ruby apprentice at the route to studying the language or a Ruby wiz looking for new suggestions, this ebook is for you.