Errata for Programming Ruby 1.9 (3rd edition)
We try to keep our books accurate, but sometimes mistakes creep in. This page lists the errors submitted by our astute readers. If you've found a new error, please submit it.
The latest version of the book is P4.1, released 3 months 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.
| Paper | Description | Found in | Fixed in | |
|---|---|---|---|---|
| 1 |
#47909: Title page says "Updated for Ruby 1.9.2" in the top right corner. Should say "...1.9.3" now.--Carsten Bormann |
P4.1
06-Nov-11 |
||
| 7 |
#48309: In "The Socket API" in the last sentence on page 7, the word "local" is misspelled as "locat".--Kim Shrier |
P4.1
15-Dec-11 |
||
| 35 |
#48386: buy with confident and get big save--Rarkhaummar |
P4.1
23-Dec-11 |
||
| 78 |
#48398: The line `triangular_numbers = Enumerator.new do |yielder|` is not correctly indented.--Trung LE |
P4.1
25-Dec-11 |
||
| 189 |
#48434: cool book, I really like it
but
roman << code unless count.zero?
seems to be incorrect
count.times { roman << code }
is better, I thi...more...
|
P4.1
30-Dec-11 |
||
| 190 |
#48267: In the sentence after the heading "Assertions == Expected Results", there is a missing word "a" before the word "series". It should read, "R...more...
|
P4.1
13-Dec-11 |
||
| 442 |
#47929: Examples for repeated_permutation say "repeated_combination" instead of "repeated_permutation".--Gus Gollings |
P4.1
10-Nov-11 |
||
| 456 |
#48531: (This _might_ be more of suggestion for clarifying the content.)
In the description of the Binding class, the text says:
"The variables,...more...
|
P4.1
15-Jan-12 |
||
| 464 |
#48389: The return type of Complex#to_i should be integer. "complex.to_i -> float" should be "complex.to_i -> integer"--Eito Katagiri |
P4.1
23-Dec-11 |
||
| 473 |
#48393: "Encoding.find(name) \returnsenc" should be "Encoding.find(name) -> enc". --Eito Katagiri |
P4.1
24-Dec-11 |
||
| 522 |
#48397: In File::Stat#world_readable?, "File.world_readable?(filename) -> ..." should be "statfile.world_readable?(filename) -> ...". The examples are...more...
|
P4.1
24-Dec-11 |
||
| 529 |
#48493: "flt == obj \returnstrue or false" should be "flt == obj -> true or false"--Eito Katagiri |
P4.1
11-Jan-12 |
||
| 536 |
#48659: Hash.[] has an important third form, which is not documented here:
Hash[ [ [key, value], ... ] ] → new_hash
see
www.ruby-doc.org/cor...more...
|
P4.1
04-Feb-12 |
||
| 553 |
#47912: s/8BUT/8BIT/ |
P4.1
07-Nov-11 |
||
| 554 |
#48660: "File.new(..." should be "IO.new(..."--Eito Katagiri |
P4.1
04-Feb-12 |
||
| 647 |
#48020: The description of the sleep method says "An argument
of zero causes sleep to sleep forever". And the signature shows 0 as the default value...more...
|
P4.1
23-Nov-11 |
||
| 660 |
#48304: In the description of the daemon method, first sentence, parenthetical expression, you have misspelled setsid. You have Process.setssid inste...more...
|
P4.1
15-Dec-11 |
||
| 696 |
#47976: In the definition of the String#[] method, this:
"If a name follows the regular expression, the corrsponding named match is returned"
sh...more...
|
P4.1
19-Nov-11 |
||
| 710 |
#48456: The documentation for String#ord states in part "Note that it isn’t quite the inverse of Integer#chr, because the latter does not deal with en...more...
|
P4.1
04-Jan-12 |
