Skip to content

Commit

Permalink
lineSeparator is now configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
noha committed Jul 7, 2017
1 parent 0a83b13 commit eea3112
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
defaults
defaultLineSeparator
^ Character lf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
lineSeparator
^ lineSeparator ifNil: [
lineSeparator := self defaultLineSeparator ]
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
accessing
nextPutSerialized: aString
self halt.
super nextPutSerialized: aString.
self stream nextPut: Character lf
self stream nextPut: self lineSeparator
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"fileReference",
"encoding",
"binary",
"stream"
"stream",
"lineSeparator"
],
"name" : "FileLogger",
"type" : "normal"
Expand Down

0 comments on commit eea3112

Please sign in to comment.