small medium large xlarge

Errata for Metaprogramming Ruby 2

 

The latest version of the book is P2.0, released about 1 year ago. If you've bought a PDF of the book and would like to upgrade it to this version (for free), visit your home page.

By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:

If you've found a new error, please submit it.

  • Typo
  • Tech. error
  • Suggestion
  • Maybe next edition
  • Not a problem
  • Reported in: P2.0 (06-May-15)
#78410
PDF page: 1

From Kado:
ch09 The Validations Modules
Both ActiveModel::Validation and ActiveRecord::Validation misses validation[s].--Paolo Perrotta

  • Reported in: P2.0 (08-May-15)
#78423
PDF page: 1

On Stack Overflow: questions/29980160/metaprogramming-ruby-2-example-from-the-book-isnt-working-when-i-try-it-troubl--Paolo Perrotta

  • Reported in: P2.0 (09-Jun-15)
#78478
PDF page: 1
[09/06/15 15:21:19] KADO Masanori: ch02: monetise gem doesn't work on Ruby 2.2.2. see https: teamtreehouse.com/forum/using-the-gem-money-it-will-not-...more...
  • Reported in: P2.0 (14-Jun-15)
#78500
PDF page: 1
appendix01: changed sample code at the point of '*'. class MyClass * private :my_attribute= end obj.set_attribute 11 # No error! * obj....more...
  • Reported in: P2.0 (07-Apr-15)
#78287
PDF page: 1

"+ Here's how you create a <class>Money</class> object from a number:"

It has still "Money" string.--Paolo (from Kado)

  • Reported in: P2.0 (07-Apr-15)
#78288
PDF page: 1
Ch04 about Padrino: "written with the RSpec test gem" It is not RSpec but minitest. ref. github.com/padrino/padrino-framework/blob/0.11.3/padrino...more...
  • Reported in: P2.0 (14-Dec-15)
#79335
PDF page: 1
Kado rightly observers that "the & operator" is a misnomer. It's not technically an operator. Some people call it "the & modifier", but I'm not sur...more...
  • Reported in: P2.0 (05-Feb-16)
#79785
Paper page: 51

The last two lines in the "methods/dynamic_definition.rb" code sample are tests, and they shouldn't appear in the text.--Paolo Perrotta

  • Reported in: P2.0 (17-Aug-15)
#78772
PDF page: 146
> "revert()" to explore_array, the method will evaluate the string "[’a’, ’b’, ’c’].revert()". It’s time to try out this utility: revert() should b...more...