Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions authors.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ The following people are totally rad and awesome because they have contributed r
* Mike Moore *mike@blowmage.com*
* Peter Hellberg *peter@c7.se*
* Jamie Gaskins *jgaskins@gmail.com*
* Sami Pussinen *me@samipussinen.com*
* ...You! What are you waiting for? Check out the [contributing]({{ site.baseurl }}/contributing) section and get cracking!

# Designers
Expand Down
4 changes: 2 additions & 2 deletions chapters/classes_and_objects/chaining.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ class TeaCup
cream: false
addChainedAttributeAccessor(this, 'properties', attr) for attr of @properties

earlgrey = new TeaCup().size('small').type('Earl Grey').sugar('false')
earlgrey = new TeaCup().size('small').type('Earl Grey').sugar(false)

earlgrey.properties # => { size: 'small', type: 'Earl Grey', sugar: false }
earlgrey.properties # => { size: 'small', type: 'Earl Grey', sugar: false, cream: false }

earlgrey.sugar true

Expand Down