Skip to content

Commit 8c36b0c

Browse files
committed
Explain why class exists
1 parent 9c78283 commit 8c36b0c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/syntax_suggest/mini_stringio.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ module SyntaxSuggest
55
#
66
# Acts like a StringIO with reduced API, but without having to require that
77
# class.
8+
#
9+
# The original codebase emitted directly to $stderr, but now SyntaxError#detailed_message
10+
# needs a string output. To accomplish that we kept the original print infrastructure in place and
11+
# added this class to accumulate the print output into a string.
812
class MiniStringIO
913
EMPTY_ARG = Object.new
1014

0 commit comments

Comments
 (0)