Errata


Print Print Icon

Submit your own errata for this product.


The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.


Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question



Version Location Description Submitted By
Printed Page 19
in the initialize definition

the original text says:

def initialize(in=STDIN, out=STDOUT)

"in" is a keyword; should be replaced by some other name such as "input"

Jia Wu 
Printed Page 20
in must "return false when parsing #{y}" do

instead of
must

Notes from the Author: Required change is exactly as noted.

Jia Wu 
Printed Page 21
in must "return false when parsing #{y}" do

instead of
must "return false when parsing #{y}" do
it should be
must "return true when parsing #{y}" do

in addition, in the line
assert !@questioner.ask(@question)
it would be nice to have more explanation afterward so that it matches the example of 'yes'. It would look like:
assert !@questioner.ask(@question), "Expected '#{n}' to be false"


Jia Wu 
Printed Page 89
bottom of page: class Object

insert just before the end

def find_hidden_method(name)
nil
end

this allows find_hidden_method in BlankSlate to refer Object.find_hidden_method without NoMethodError when an unknown method name is sent to reveal

Wolfgang Kittenberger 
PDF Page 139
139 errata

The correction to the example on page 139 posted as corrected errata is also incorrect, because it does not initialize @series[0] and @series[1] and because it refers to fin(n-2)

This is correct:

def fib(n)
@series ||= []
@series[n] ||= fib(n-1) + fib(n-2)
end

Ray Baxter