Skip to content
Browse files

fixed age <-> name confusion

  • Loading branch information...
1 parent 6c1c822 commit 3d9500e0bffcd03694b34676753f084f957232d4 @bakkdoor bakkdoor committed Nov 15, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 Chapter02.md
View
4 Chapter02.md
@@ -140,7 +140,7 @@ methods to emulate default arguments for the missing arguments:
class Person {
def initialize: name {
- initialize: name age: "John Doe" # default is "John Doe"
+ initialize: name age: 42 # default is 42
}
def initialize: name age: age {
@@ -188,7 +188,7 @@ methods and syntax sugar:
class Person {
read_write_slots: ['name, 'age, 'city]
- def initialize: @name age: @age ("John Doe") city: @city ("New York") {
+ def initialize: @name age: @age (42) city: @city ("New York") {
}
}

0 comments on commit 3d9500e

Please sign in to comment.
Something went wrong with that request. Please try again.