Metaprogramming Ruby 2

Program Like the Ruby Pros

by: Paolo Perrotta

Published 2014-08-11
Internal code ppmetr2
Print status In Print
Pages 276
User level Intermediate
Keywords ruby, rails, metaprogramming, advanced ruby, model, DSL
Related titles

Programming Ruby
Ruby Metaprogramming screencasts

ISBN 9781941222126
Other ISBN Channel epub: 9781680504002
Channel PDF: 9781680504019
Kindle: 9781941222300
Safari: 9781941222751
Kindle: 9781941222300
BISACs COM051410 COMPUTERS / Programming Languages / Ruby
COM051210 COMPUTERS / Programming / Object Oriented
COM051210 COMPUTERS / Programming / Object Oriented

Highlight

Write powerful Ruby code that is easy to maintain and change. With metaprogramming, you can produce elegant, clean, and beautiful programs. Once the domain of expert Rubyists, metaprogramming is now accessible to programmers of all levels. This thoroughly revised and updated second edition of the bestselling Metaprogramming Ruby explains metaprogramming in a down-to-earth style and arms you with a practical toolbox that will help you write your best Ruby code ever.

Description

Dig under the surface and explore Ruby’s most advanced feature: a collection of techniques and tricks known as metaprogramming. In this book, you’ll learn metaprogramming as an essential component of Ruby and discover the deep, non-obvious details of the language. Once you understand the tenets of Ruby, including the object model, scopes, and singleton classes, you’re on your way to applying metaprogramming both in your daily work assignments and in your fun, after-hours projects.

Metaprogramming Ruby, Second Edition makes mastering the language enjoyable. The book is packed with:

This completely revised new edition covers the new features in Ruby 2.0 and 2.1, and contains code from the latest Ruby libraries, including Rails 4. Most examples are new, “from the wild,” with more recent libraries. And the book reflects current ideas of when and how much metaprogramming you should use.

Whether you’re a Ruby apprentice on the path to mastering the language or a Ruby wiz in search of new tips, this book is for you.

Contents and Extracts

Introduction</br>