Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update Object#println definition

  • Loading branch information...
commit 4cd3757cb4ccd76d8e8009d16c3139ff1d0ec4c9 1 parent 2c17635
@bakkdoor bakkdoor authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 Chapter01.md
View
6 Chapter01.md
@@ -113,11 +113,13 @@ as an **iterator**. In terms of the language, `each:` is just a method
like any other though.
The `println` send to `x` causes it to be displayed on
-`STDOUT`. Here's the implementation of `println`:
+`*stdout*`. Here's the implementation of `println`:
```fancy
def println {
- Console println: (self to_s)
+ # *stdout* is a dynamic variable
+ # we'll discuss these later in detail
+ *stdout* println: to_s
}
```
Please sign in to comment.
Something went wrong with that request. Please try again.